Qiyam al-Layl: The Night Prayer (Tahajjud, Tarawih & Witr — What's the Difference?)
By Yusuf Imran, Editorial Lead, Prayer Times Near Me · Published May 18, 2026 · 9 min read
Four words for night prayer regularly trip up Muslims: Qiyam al-Layl, Tahajjud, Tarawih, and Witr. Are they the same? Different? Do they overlap? The short answer: Qiyam al-Layl is the umbrella, and the other three are specific kinds of it — each with its own time window, location, rak'aat count, and rules. This guide clears the confusion with a side-by-side comparison and the precise distinctions.
The umbrella: Qiyam al-Layl ("standing the night")
Qiyam al-Layl (قيام الليل) is the GENERAL term for any voluntary prayer performed at night, between Isha and Fajr. It includes:
- Tahajjud (night prayer after sleeping)
- Tarawih (Ramadan-specific congregational prayer after Isha)
- Witr (odd-numbered closing prayer)
- Any other voluntary 2-rakaat sets you might pray
So when someone says "I pray Qiyam al-Layl every night," they could mean any combination of these. The Prophet ﷺ said: "The best prayer after the obligatory ones is the prayer at night." (Muslim 1163). Allah praises the people of the night in the Quran (Al-Sajdah 32:16, Al-Furqan 25:64, Al-Dhariyat 51:17).
Side-by-side comparison
| Prayer | Time window | When (year) | Rak'aat | Where |
|---|---|---|---|---|
Qiyam al-Layl قيام الليل Standing the night | Any time after Isha until Fajr | Any night of the year | Open — 2 to many (always in pairs) | Mosque or home |
Tahajjud تهجد Waking up from sleep to pray | After sleeping, ideally in the last third of the night | Any night of the year | 2 to 12 (typically 8); always in pairs of 2 | Home (preferred — privacy of worship) |
Tarawih تراويح To rest (a brief pause between sets) | After Isha congregation | Ramadan only | 8 or 20 (school-dependent, both valid) | Mosque (in congregation) |
Witr وتر Odd-numbered | After Isha, before Fajr — typically as the LAST prayer of the night | Every night of the year | Odd: 1, 3, 5, 7, or 9 (most commonly 3) | Mosque or home |
Tahajjud explained
Tahajjud (تهجد) comes from the root h-j-d, which has the unusual property of meaning both "to sleep" and "to stay awake from sleep." In context, Tahajjud means: waking up from sleep to pray voluntarilyin the latter part of the night. Sleeping first is part of the definition — without sleep, it's Qiyam al-Layl, not technically Tahajjud.
The Prophet ﷺ prayed Tahajjud every single night for the rest of his life after it was instructed in Surah Al-Muzzammil (73:1–4). He encouraged the same of his companions but did not make it obligatory. It is one of the most spiritually powerful acts in Islam — a moment when the worshipper is alone with Allah, when distractions are at their lowest, and (per the famous hadith) when Allah descends to the lowest heaven asking who is calling on Him.
The last third of the night
Calculate it: take the time from Maghrib to next-day Fajr (the "night"). Divide by 3. The final segment is the "last third." For example, if Maghrib is 7:30 PM and Fajr is 4:30 AM, that's 9 hours of night. Divide by 3 = 3 hours each. The last third is from 1:30 AM to 4:30 AM. That's the prime Tahajjud window.
Tarawih explained
Tarawih (تراويح) is from tarwiha— "a brief rest." Named because worshippers traditionally took a short rest after every 4 rakaat. Tarawih is special to Ramadan, prayed in congregation at the mosque immediately after Isha, with long Quranic recitation (often a full juz' per night to complete the Quran across the month).
Rak'aat:8 (the Prophet's practice as narrated by Aisha) or 20 (the practice formalized under Umar ibn al-Khattab). Both are valid scholarly positions, both supported by evidence. The Hanafi and Shafi'i schools tend to 20; the Maliki school 20 or 36; many modern Salafi-leaning mosques 8.
We have a complete Tarawih guide covering both methods, Khatm al-Quran, and how to pray if you arrive late.
Witr explained
Witr(وتر) means "odd-numbered." The Witr prayer is the closing prayer of the night — always odd in rakaat count: 1, 3, 5, 7, or 9. Most commonly 3. It is prayed after Isha and ideally is the very LAST prayer of the night. The Prophet ﷺ said: "Make Witr the last of your night prayer." (Bukhari 998, Muslim 749).
Rulings on its status vary. The Hanafi school considers it wajib (obligatory but below fard). The majority (Shafi'i, Hanbali, Maliki) consider it a strongly emphasized Sunnah. Either way, the Prophet ﷺ never abandoned it — even when traveling.
See our full Witr prayer guide including the Du'a al-Qunut in full.
How they combine
Outside Ramadan, sample night
- Pray Isha (4 rakaat fard, 2 sunnah) around 9:00 PM.
- Sleep.
- Wake at 2:30 AM (in the last third).
- Pray Tahajjud — 4, 6, or 8 rakaat in pairs of 2.
- End with Witr — 3 rakaat.
- Recite Quran, make dua, until Fajr.
- Pray Fajr in congregation.
During Ramadan, sample night
- Iftar at Maghrib.
- Pray Maghrib.
- Eat the main Iftar meal.
- Pray Isha (in mosque ideally).
- Pray Tarawih — 8 or 20 rakaat in congregation.
- Pray Witr now (3 rakaat) IF you don't plan to wake for Tahajjud — OR delay Witr until after Tahajjud.
- Sleep.
- Wake at 2:30 AM for Tahajjud (last 10 nights especially).
- End with Witr (if not done earlier).
- Suhoor.
- Fajr in congregation.
Key rule: only pray Witr ONCE per night. If you pray it after Tarawih and then wake for Tahajjud, you do NOT re-pray Witr.
How long is each prayer?
The Prophet's Tahajjud was extraordinarily long. Aisha (RA) said his standing in night prayer was so long that his feet would swell (Bukhari 4837). One night he recited 4 long surahs in a single rakaat. Modern Muslims should aim for whatever quality they can sustain. A genuine 2-rakaat Tahajjud with focused recitation and humility is worth more than 12 rushed rakaat.
Get your prayer times
For Isha, Maghrib, and Fajr times (which bracket the night prayer window), use prayer times for your city. During Ramadan, the Ramadan 2026 Live Tool shows your live Iftar, Suhoor, and Isha + Tarawih start times.
Frequently asked questions
- What is Qiyam al-Layl?
- Qiyam al-Layl literally means 'standing the night' — it is the general term for any voluntary prayer performed at night (after Isha, before Fajr). It is an umbrella category that INCLUDES Tahajjud, Tarawih, and Witr. So when someone says 'I pray Qiyam al-Layl,' they could be referring to any night prayer. The Prophet ﷺ described night prayer as 'the prayer most beloved to Allah after the obligatory prayers' (Muslim 1163).
- What's the difference between Tahajjud and Tarawih?
- Tahajjud is prayed any night of the year, after sleeping, ideally in the last third of the night, typically alone at home. Tarawih is prayed only during Ramadan, immediately after Isha, in congregation at the mosque, with long Quranic recitation. Both are voluntary, both are night prayers, but they serve different purposes. You can pray BOTH during Ramadan — Tarawih after Isha, then sleep, then Tahajjud in the last third before Fajr.
- Is Witr the same as Tahajjud?
- No, but they're often combined. Witr is specifically an odd-numbered prayer (1, 3, 5, 7, or 9 rakaat) that closes the night's worship. Tahajjud is voluntary even-numbered rakaat performed after sleeping. The standard practice: pray Tahajjud (even rakaat) first, then end with Witr (odd rakaat). So a typical night might be 8 rakaat Tahajjud + 3 rakaat Witr = 11 rakaat total, which matches the Prophet's recorded practice.
- When is the best time for Qiyam al-Layl?
- The last third of the night — roughly the period between 1/3 of the way from Maghrib to Fajr until just before Fajr. The Prophet ﷺ said: 'Our Lord, blessed and exalted, descends every night to the lowest heaven when the last third of the night remains, saying: Who is calling upon Me, that I may answer him?' (Bukhari 1145). Calculate your last third: night length = Maghrib to next-day Fajr; divide by 3; the final segment is the most blessed. If you can only manage 30 minutes, this is the time.
- How many rak'aat is Tahajjud?
- The Prophet ﷺ typically prayed 11 rakaat total at night, which included Witr. So 8 rakaat Tahajjud + 3 rakaat Witr is the Sunnah model. Some narrations mention 13 rakaat. Minimum is 2 rakaat. Maximum is open. Pray as many as your time and energy allow, but quality (long recitation, concentration) is more valued than quantity.
- Can I pray Tahajjud without sleeping first?
- Strictly speaking, no — the word 'Tahajjud' implies awakening from sleep. If you don't sleep first, what you pray is still Qiyam al-Layl (any night prayer), but it's not technically Tahajjud. If sleep isn't possible (e.g., you have insomnia or just finished Tarawih), pray the rakaat as Qiyam al-Layl and you still get the reward of voluntary night prayer.