Skip to content
Joyful Muslims
Store
Get the app
Worship

What is qiyām al-layl? How did the Prophet ﷺ pray at night?

The night prayer is the defining mark of the righteous in the Qur'an. The scholars described it with loving detail — its rakʿahs, its duʿāʾ, its place in the spiritual life of the believer.

10 passages from 4 books in the library

Qiyām al-layl, the night prayer, is described by the scholars as the defining mark of the righteous, prayed with loving attention to its rakʿahs and supplication. ʿĀʾisha related that when the Prophet ﷺ missed his night prayer through sleep or illness, he would make it up by praying twelve rakʿahs during the day. The scholars commend a midday rest (qaylūlah) as a sunnah that aids the night vigil, just as the pre-dawn meal aids fasting, and they record that reciting aloud in night prayer is established in the two Ṣaḥīḥs, since the angels and others present are stirred by it.

Drawn from the classical sources below — in the scholars' own words.

Where the answer comes from

The classical approach.

These passages are drawn from 4 books by Imam al-Ghazali — part of the classical Sunni tradition that carries over a thousand years of reflection on the Qurʾān, the authentic Sunnah, and the consensus of the early community. Nothing below is a paraphrase. The words are the scholars' own, translated from the original Arabic manuscripts.

Read them closely. If a passage doesn't sit right, open the full book in the library and listen to the chapter around it. Context in the classical tradition is everything.

Cover of Book 4: The Book of Prayer
Book 4: The Book of Prayer
Imam al-Ghazali · Ihya’ ‘Ulum al-Din

11th–12th century · Ṭūs, Khurāsān
Reviving the inner life of Islam through the Iḥyāʾ ʿUlūm al-Dīn — one of the most influential works ever written in any religious tradition.
More on Imam al-Ghazali → · Provenance →

  1. "If he intends Tahajjud or the Sunnah of Isha with them, it would not be part of the Witr. If he intends Witr, it would not be odd in itself; Witr is what follows. The apparent view is to intend Witr, just as intending Witr for three continuous rak'ahs. Witr has two meanings: to be odd in itself or to combine to make odd with what follows, making the total three rak'ahs Witr, with the two rak'ahs part of the three, but its oddness depends on the third rak'ah."

  2. "The third rak'ah is odd in itself and makes others odd. The two rak'ahs do not make anything else odd and are not odd in themselves, but they are made odd by another. The Witr should be the last night prayer, following Tahajjud. The virtues of Witr and Tahajjud and how to structure them will be mentioned in the Book of Organizing Supplications. Seventh: The Duha Prayer Persisting in the Duha prayer is among the most determined and virtuous actions."

  3. "There is some uncertainty about thirteen rak'ahs, and an isolated narration mentions seventeen rak'ahs. These rak'ahs are part of the Witr, a night prayer, which is also known as Tahajjud. The Tahajjud prayer at night is a confirmed Sunnah, and its merits will be discussed in the Book of Supplications. There is a difference of opinion regarding the best way to perform Witr."

  4. "Ibn Umar delayed it until two stars appeared, freeing two slaves. Fifthly, the established Sunnah for the night prayer is four Rak'ahs after the obligatory prayer. Aisha, may Allah be pleased with her, said: "The Messenger of Allah, peace be upon him, used to pray four after the night prayer, then sleep. Some scholars, considering the collection of narrations, chose that the number of established Sunnah prayers is seventeen, matching the obligatory prayers: two before Fajr, four before Dhuhr, two after it, four before 'Asr, two after Maghrib, and three after the night prayer, including Witr."

Cover of Book 10: The Mysteries of Regular Divisions
Book 10: The Mysteries of Regular Divisions
Imam al-Ghazali · Ihya’ ‘Ulum al-Din

11th–12th century · Ṭūs, Khurāsān
Reviving the inner life of Islam through the Iḥyāʾ ʿUlūm al-Dīn — one of the most influential works ever written in any religious tradition.
More on Imam al-Ghazali → · Provenance →

  1. "and if you fear the dawn, then pray one rak'ah as witr. He also said, "The Maghrib prayer is the witr prayer of the day, so perform witr for the night prayer. The most that has been authentically reported about the night prayer of the Messenger of Allah, peace and blessings be upon him, was thirteen rak'ahs. He would recite during these rak'ahs from his regular portion of the Quran or from specific surahs, whatever was easy for him, and this portion was approximately during the last sixth of the night."

  2. "She said, "Sometimes he recited aloud and sometimes quietly. This was reported by Abu Dawood, al-Nasa'i, and Ibn Majah with a sahih chain. The hadith about the night prayer being two by two, and if one fears the dawn, to perform one rak'ah as witr, is agreed upon and mentioned before. The hadith about Maghrib being the witr prayer of the day, so make witr for the night prayer, was reported by Ahmad from Ibn Umar with a sahih chain."

  3. "Aisha mentioned that the Prophet performed the Witr at different times of the night, and his Witr continued until the time of suhur. Ali described three ways to perform Witr: at the beginning of the night, with one rak'ah, or delaying it to be the last prayer. However, undoing the Witr has been explicitly prohibited, as the Prophet said, "No two Witr in one night.""

  4. "However, if one regularly performs night prayers, delaying the Witr is better. The Prophet said, "The night prayer is two by two rak'ahs, and if you fear the coming of dawn, then perform the Witr with one rak'ah. Aisha mentioned that the Prophet performed the Witr at different times of the night, and his Witr continued until the time of suhur."

Cover of Book 8: The Mysteries of Qur'an Recitation
Book 8: The Mysteries of Qur'an Recitation
Imam al-Ghazali · Ihya’ ‘Ulum al-Din

11th–12th century · Ṭūs, Khurāsān
Reviving the inner life of Islam through the Iḥyāʾ ʿUlūm al-Dīn — one of the most influential works ever written in any religious tradition.
More on Imam al-Ghazali → · Provenance →

  1. "He replied, 'Had it not been for our appointment, I would not tell you what detained me. After praying the night prayer, I decided to perform Witr before coming to you, fearing death might prevent me. While praying in Witr, I was shown a lush garden from Paradise, filled with various flowers. I continued to gaze at it until morning.'" These revelations only occur after renouncing the self and not turning toward it or its desires."

  1. "Khalid al-Juhani describing the prayer of the Prophet, peace be upon him. He observed that the Prophet prayed two light units, followed by two long units, then progressively shorter units, concluding with the Witr, making a total of 13 units. Aisha, may Allah be pleased with her, shared that the Prophet, peace be upon him, would not exceed 11 units in prayer during Ramadan or otherwise. He would pray four units, noted for their beauty and length, followed by another four, and then three. When Aisha asked if he slept before the Witr, he replied, oh Aisha, my eyes sleep, but my heart does not sleep. Another narration from Aisha"

Ask a follow-up

Want a different angle?

Type your question below — the answer is built from the same sources, and cited.

Grounded in the Qurʾān, authentic Sunnah, and the four madhāhib. Sourced answers. Never a fatwā — for personal matters, ask a qualified imam. How these answers are made →

Related questions

Keep exploring.

Hear these in full

Books these passages are from.

Open in App Store