How each prayer follows the sun
Allah commands the Prophet ﷺ to keep up the prayer from the decline of the sun until the darkness of the night, and to pray at dawn (Quran 17:78). He also says that prayer is prescribed for the believers at fixed times (Quran 4:103). The Prophet ﷺ was taught the times by Jibril (peace be upon him), who led him in prayer on two successive days (Sunan Abi Dawud 393; Jami at-Tirmidhi 149). The Prophet ﷺ then described when each time ends (Sahih Muslim 612).
- Fajr starts at true dawn, when a thin band of light spreads across the horizon. It ends at sunrise (Sahih Muslim 612).
- Dhuhr starts just after midday, when the sun has passed its highest point and begins to decline. It lasts until Asr begins (Sahih Muslim 612).
- Asr starts when the shadow of an object reaches a certain length, as explained below. The preferred time lasts until the sun turns yellow (Sahih Muslim 612), and whoever catches one rak'ah before sunset has caught Asr (Sahih al-Bukhari 579).
- Maghrib starts at sunset, when the sun has fully gone below the horizon. It lasts until the red twilight disappears (Sahih Muslim 612).
- Isha starts when the twilight after sunset has ended and the night is dark. Its preferred time lasts until about midnight (Sahih Muslim 612).