The first view is upheld by Imams Abū Ḥanīfah, Mālik, Aḥmad, and those who follow their schools. They rely on the report transmitted by Abū Dāwūd (1278) and al-Tirmidhī (419) from Ibn ʿUmar, in which the Prophet ﷺ said: “There is no prayer after Fajr except two prostrations.”
The Shāfiʿīs, on the other hand, hold that the prohibition begins only after the Fajr prayer itself, citing as evidence the ḥadith recorded by al-Bukhārī (561) from Abū Saʿīd: “There is no prayer after the Fajr prayer until the sun rises,” along with other narrations.
What the Hanbalis use as proof is open to objection and cannot compete with the ḥadiths found in the two Ṣaḥīḥs, as will be clarified below.
Benefit: The purpose behind banning prayer during these specific times is to prevent any resemblance to the idolaters who prostrate to the sun at its rising and its setting. Islam seeks unity among its followers in worship, customs, and daily affairs, and it calls on them to remain independent, not imitating others, so that they preserve a distinct Islamic identity.