And Shaykh al-Islām Ahmad ibn Taymiyyah (may Allah have mercy on him) said:
Section
The times when prayer is prohibited, and the disagreement concerning prayers performed for specific reasons and other prayers. There is considerable confusion on this subject.
We say:
It is established by revealed texts and scholarly consensus that the prohibition does not encompass all prayers. It is established in the two Sahīh collections that the Prophet (may Allah bless him and grant him peace) said:
“Whoever completes one rak‘ah before the sun rises has caught the prayer in time.” Another version reads, “Let him add another to it”; another, “Let him complete his prayer”; and another uses “a prostration.”
All these versions are authentic. Likewise, he said:
“Whoever completes one rak‘ah of ‘Asr before the sun sets has caught the prayer in time.” Another version reads, “Let him complete his prayer”; another, “Let him add another to it”; and another uses “a prostration.”
This includes his command to perform the second rak‘ah of Fajr as the sun rises. It also establishes that if someone performs one rak‘ah of ‘Asr as the sun sets, it is valid