Performing the prayer in the case of an excuse
For, apart from an excuse, it is obligatory to perform the prayer at its time, as in the hadith of the Prophet ﷺ:
صل الصلاة لوقتها
“Perform the prayer at its time.”
More detail will follow.
(Nawawi, may Allah have mercy on him) The scholars are agreed that it is not permissible to deliberately delay until that time (sunrise or sunset).
➊ It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ said:
من أدرك من الصبح ركعة قبل أن تطلع الشمس فقد أدرك الصبح ومن أدرك ركعة من العصر قبل أن تغرب الشمس فقد أدرك العصر
“Whoever catches one rak’ah of the Fajr prayer before sunrise has caught the morning prayer, and whoever catches one rak’ah of the Asr prayer before sunset has caught the Asr prayer.”
➋ It is narrated from Aishah (may Allah be pleased with her) that the Messenger of Allah ﷺ said:
من أدرك مـن الــعـصـر ســجـدة قبل أن تغرب الشمس أو من الصبح قبل أن تطلع الشمس فقد أدركها
“Whoever catches one rak’ah of the Asr prayer before sunset (here, sajdah means rak’ah) or one rak’ah of the Fajr prayer before sunrise, has caught it, that is, the Asr prayer or the Fajr prayer.”
It is known from this that obtaining one rak’ah of the Fajr prayer and of the Asr prayer before their times end is just like having obtained the complete prayer.
(Shafi’i, Ahmad) They hold this view.
(Abu Hanifah) This is specific to the Asr prayer only, so the Fajr prayer becomes invalid at sunrise, even if one had caught a rak’ah beforehand (their evidence is the hadith in which praying at the time of sunrise is prohibited, but the prohibiting hadith is specified by the previous hadiths).
(The preponderant view) Certainly, the position of Imam Shafi’i (may Allah have mercy on him) is the preponderant one, because the previous authentic hadiths bear witness to it.
(Ibn Hajar, may Allah have mercy on him) He holds this view.
(Shawkani, may Allah have mercy on him) He gives preference to this.
(Abd al-Rahman Mubarakpuri, may Allah have mercy on him) He holds this very position.
(Ibn al-Qayyim, may Allah have mercy on him) He established this point and decisively refuted those who differ.