The time of ‘Asr
The Prophet (peace and blessings of Allaah be upon him) said: “The time for ‘Asr lasts until the sun turns yellow.”
We know that the time for ‘Asr begins when the time for Zuhr ends, i.e., when the length of an object’s shadow becomes equal to the length of the object itself. There are two times for the end of ‘Asr.
(1) The preferred time: this lasts from the beginning of the time for ‘Asr until the sun begins to turn yellow, because the Prophet (peace and blessings of Allaah be upon him) said: “The time for ‘Asr lasts until the sun turns yellow.” Defining this time by the clock varies according to the season.
(2) The time of necessity. This lasts from the time the sun turns yellow until sunset, because the Prophet (peace and blessings of Allaah be upon him) said: “Whoever catches up with one rak’ah of ‘Asr before the sun sets has caught up with ‘Asr.” (Narrated by al-Bukhaari, 579; Muslim, 608)
Question: what is meant by the time of necessity?
Necessity here refers to when a person is distracted from praying ‘Asr by some essential and unavoidable work, such as dressing wounds, and he is able to pray before the sun turns yellow but it is difficult, then he prays just before sunset. In this case he has prayed on time and has not sinned, because this is the time of necessity. If a person is forced to delay the prayer, there is no sin so long as he prays before the sun sets.
www.islamqa.com