Quick orientation:

Qiyam al-Layl = all voluntary night prayer (the broad term)
Tahajjud = night prayer specifically after sleeping
Witr = the odd-rakat prayer that closes the night
Tarawih = the qiyam prayed in congregation in Ramadan
Best time: last third of the night
Minimum: 2 rakats + Witr

When Aisha (RA) was asked about the Prophet's night prayer, she described something that was both profound and human. He would pray until his feet swelled, and when she asked him why he did this when all his past and future sins had been forgiven, he said: "Should I not be a grateful servant?" (Sahih al-Bukhari 4837). The night prayer was not an obligation for him. It was gratitude expressed in the most direct form available to a human being: standing before Allah in the quiet dark.

That story tells you what the night prayer fundamentally is. It is not about earning credit or meeting a quota. It is the form of worship most removed from public view, most personal, most costly in terms of sleep, and for that reason, the one that means the most.

What is qiyam al-layl?

Qiyam al-layl literally means "standing the night." In Islamic terminology, it refers to any voluntary prayer performed at night after the obligatory Isha prayer. It is not a single specific prayer with a fixed number of rakats. It is a category of worship, and it contains several named prayers within it.

Many Muslims use "tahajjud" and "qiyam al-layl" interchangeably, but there is a technical distinction. Tahajjud, derived from the verb meaning "to sleep and then wake," refers specifically to night prayer after a period of sleep. If you stay up past Isha and pray immediately without sleeping, it is qiyam al-layl but not technically tahajjud. If you sleep, wake in the night, and pray, that is both.

The scholars differ on whether this distinction carries practical importance. The majority view is that any sincere night prayer carries the virtue described in the texts, regardless of whether sleep preceded it.

The Quran on night prayer

The Quran speaks about night prayer in multiple places and in different registers, from direct command to description of the believers who will receive Jannah.

The earliest command came in Surah Al-Muzzammil, revealed at the very beginning of the Makkan period:

"O you who wraps himself in clothing, arise to pray the night, except for a little, half of it, or subtract from it a little, or add to it, and recite the Quran with measured recitation." (Quran Al-Muzzammil 73:1-4)

Later in the same surah, after the companions had been burdened by this command for a full year, Allah eased the obligation: "Your Lord knows that you stand in prayer for almost two-thirds of the night, or half of it, or a third of it... He has known that there will be among you those who are ill, and others traveling throughout the land... so recite what is easy from it." (Quran Al-Muzzammil 73:20)

The point is that Allah commanded it, the companions struggled with it, and then Allah reduced it to what is manageable. The night prayer was never meant to be a crushing burden. It is meant to be consistent and sincere.

In Surah As-Sajdah, Allah describes the people who will receive the highest reward: "They arise from their beds; they supplicate their Lord in fear and aspiration, and from what We have provided them, they spend." (Quran As-Sajdah 32:16). And in Surah Adh-Dhariyat: "They used to sleep but little of the night, and in the hours before dawn they would seek forgiveness." (Quran Adh-Dhariyat 51:17-18)

These ayat are not describing superhuman feats. They are describing Muslims who set aside some of the night for Allah, consistently. "A little" of the night. Not all of it.

The best time: the last third

The Prophet ﷺ identified the last third of the night as the most blessed time to pray, and he gave a reason that makes this unmistakably clear:

"Our Lord, Blessed and Exalted, descends every night to the lowest heaven when the last third of the night remains, and says: Who is calling upon Me, that I may answer him? Who is asking of Me, that I may give to him? Who is seeking My forgiveness, that I may forgive him?" (Sahih al-Bukhari 1145, Muslim 758)

This hadith is one of the most significant in all of Islamic literature. It establishes that in the last third of the night, Allah is waiting. He is not merely available; He is actively inviting. The person who wakes in that hour and prays or makes dua is not petitioning a distant deity. They are responding to an open invitation.

To calculate the last third: take the time between Isha and Fajr, divide it into three equal parts, and the last third begins at the start of the final portion. For example, if Isha is at 9 pm and Fajr is at 4 am, the total night is 7 hours. The last third begins at 9 pm + (7 x 2/3 hours) = approximately 1:40 am. A prayer app with qiyam time can calculate this for your location automatically.

Types of night prayer

Several named prayers fall under the umbrella of qiyam al-layl:

Tahajjud: The most praised voluntary prayer in the tradition. Prayed after sleeping, typically in the last third of the night. No fixed rakat count; most narrations put the Prophet's practice at 8 rakats before Witr.

Witr: The "odd" prayer that closes the night. It can be 1, 3, 5, 7, 9, or 11 rakats, always ending on an odd number. The Prophet ﷺ said: "Make Witr your last prayer of the night." (Sahih al-Bukhari 998). It is so emphasized that the Hanafi school holds it as wajib (obligatory by strong sunnah).

Tarawih: The special night prayer of Ramadan, prayed in congregation after Isha. Typically 8 or 20 rakats depending on the school and local practice. Its status is established sunnah, and the Prophet ﷺ himself led it before choosing to stop, fearing it would become compulsory on the ummah. (Sahih al-Bukhari 2012)

Salat al-Awwabin: Six rakats prayed after Maghrib. The Prophet ﷺ said it equals the reward of twelve years of worship (narrated in Sahih Muslim 748, in a form attributed to the Prophet). This is part of night prayers in the broader sense, bridging the evening into night.

How the Prophet ﷺ prayed the night

Aisha (RA) was the primary narrator of the Prophet's night prayer because she shared his home and often witnessed it. Her descriptions are detailed and consistent across multiple collections.

She narrated: "The Prophet ﷺ used to pray eleven rakats at night. He would prostrate in each rakat for as long as it takes one of you to recite fifty verses before he lifted his head." (Sahih al-Bukhari 1147)

In another narration, she described his method: he would pray two rakats as an opening, then pray two by two by two by two (8 rakats total), then pray Witr as three. (Sahih Muslim 746). Some narrations describe five rakats of Witr, and some describe 13 rakats total including the opening two light rakats. The scholars reconcile these by noting he varied his practice.

What is consistent across all narrations:

  • He never exceeded 11 rakats regularly (though he may have done more occasionally)
  • He prayed slowly, with long sujood and long ruku
  • He would begin with two very short rakats to "open" the night prayer
  • He ended with Witr
  • He would recite long portions of the Quran in each rakat
  • He would weep in the night prayer regularly

The Prophet ﷺ also gave this principle: "The most beloved deeds to Allah are those done consistently, even if they are small." (Sahih al-Bukhari 6465). Applied to the night prayer: two rakats every night, consistently, is more beloved to Allah than eleven rakats done twice a week.

Witr: the seal of the night

Witr deserves its own detailed treatment because it is both the most practically important part of the night prayer and the one most people get wrong.

The Prophet ﷺ said: "O people of the Quran, pray Witr, for Allah is Witr (odd, single) and loves the Witr." (Abu Dawud 1416, Tirmidhi 453, graded sahih). He also said it is the right of every Muslim night: "Allah has added for you a prayer, and it is better for you than the red camels: it is Witr. He has made it the time between Isha and the dawn prayer." (Abu Dawud 1418, Tirmidhi 452)

For those who cannot reliably wake for the last third, the Prophet's instruction was clear: pray Witr before you sleep. "Whoever fears he will not wake in the last part of the night should pray Witr at the beginning. And whoever is eager to wake in the last part of the night should delay Witr, because prayer at the end of the night is witnessed and that is better." (Sahih Muslim 755)

The most common method for three-rakat Witr: pray two rakats, sit for tashahhud without salam, stand for the third rakat, and complete with salam. The Hanafi method ends differently: pray two rakats and give salam, then pray one rakat. Both are established by narrations from the companions.

In Witr, the sunnah is to recite Surah Al-Ala in the first rakat, Al-Kafirun in the second, and Al-Ikhlas (with or without Al-Falaq and An-Nas) in the third. And in three-rakat Witr, qunut is recited in the third rakat after rising from ruku, before going to sujood. The qunut of Witr: "Allahumma-hdini fee man hadayt..." is the well-known supplication narrated by al-Hasan ibn Ali (RA) from the Prophet ﷺ. (Abu Dawud 1425, Tirmidhi 464, graded sahih)

Tarawih in Ramadan

Tarawih is the night prayer of Ramadan, and it is one of the most beloved forms of qiyam al-layl in the entire year. The Prophet ﷺ prayed it in congregation for three nights and then stopped, fearing it would become obligatory. After his death, Umar ibn al-Khattab (RA) revived it as an organized congregational prayer, and this has continued as the practice of the ummah ever since.

The number of rakats: The Prophet ﷺ never prayed more than 11 rakats total at night, which led scholars like Ibn Taymiyyah and Ibn al-Qayyim to prefer 11 or 13 for Tarawih. However, the practice in Madinah during the time of Umar settled on 20 rakats (plus 3 Witr = 23 total), and this is the majority practice in most of the Muslim world today, including the two holy mosques in many historical periods. Ibn Abdel Barr recorded the ijma (scholarly consensus) on the permissibility of 20 rakats. Both 8+3 and 20+3 are valid, established positions.

The immense reward: "Whoever stands in prayer in Ramadan with iman and hoping for reward, all his previous sins will be forgiven." (Sahih al-Bukhari 2008, Muslim 759). This applies to Tarawih as the primary form of night prayer in Ramadan.

How to start if you never have

The barrier to night prayer is almost never theological. Every Muslim knows it is virtuous. The barrier is practical: getting up when the alarm goes off at 3 am is genuinely difficult. Here is what the tradition actually teaches about starting small.

The Prophet ﷺ said when Abdullah ibn Amr was fasting every day and praying all night: "Do not do this. Fast some days and not others. Stand in prayer at night and sleep." (Sahih al-Bukhari 1977). The Prophet ﷺ cared about sustainability. He did not want the ummah burning bright for a week and then abandoning the practice.

A realistic starting plan: Begin with two rakats after Isha and Witr (three rakats total) before bed. Do this every night for a month. Then try setting an alarm 30 minutes before Fajr on weekends only. Add that to your weeknight routine after it becomes easy. Build slowly. The Prophet ﷺ said: "Take from deeds what you are able to do, for Allah does not become tired until you do." (Sahih al-Bukhari 6464)

FivePrayer's Fajr alert can serve as your qiyam alarm: set it 30-45 minutes before Fajr, wake up, pray two to four rakats, then pray Witr, and stay awake until the Fajr adhan.

FAQ

Do I need wudu for night prayer?

Yes. All salah requires wudu. If you slept, you need fresh wudu. The good news is that wudu itself is an act of worship, and the Prophet ﷺ said that the limbs washed in wudu will shine on the Day of Judgment. (Sahih Muslim 246)

Can I pray night prayer if I haven't prayed Isha yet?

No. The obligatory Isha must be prayed before voluntary night prayer. The obligatory prayers take precedence in every case.

Can women pray qiyam al-layl?

Yes, absolutely. Many of the great worshippers in Islamic history were women. The Prophet ﷺ was moved to tears by a woman named Umm Waraqah whom he called "the shaheedah" because of her devotion. Aisha (RA) herself was known for long nights of prayer. The reward for women's night prayer is equal to men's.

If I pray Witr before sleeping and then wake up in the last third, can I pray more?

Yes, you can pray additional voluntary rakats, but do not pray Witr again. The Prophet ﷺ said: "There is no two Witrs in one night." (Abu Dawud 1439, Tirmidhi 470). Pray additional pairs of rakats and leave the Witr you already prayed as your close.

Wake up for the last third of the night

FivePrayer's gentle adhan can serve as your qiyam alarm.

Set it 30 to 45 minutes before Fajr and wake up to the sound of the adhan. Pray your rakats in peace, make your dua in the blessed hour, and begin the day with Fajr. Free, no ads.

Download on theApp Store
Get it onGoogle Play
Also onChrome