Tahajjud (تَهَجُّد) is the voluntary night prayer Muslims offer in the deep hours after Isha and before Fajr, after waking from sleep. It is one of the most beloved acts of worship in Islam — the Qur’an commands it directly, and the Prophet ﷺ never abandoned it for as long as he lived. The reward is so weighty that scholars call Tahajjud the “crown of the night-worshippers.”
This guide explains exactly when Tahajjud begins, how to perform it step by step, how many rakats the Prophet ﷺ prayed (the answer is in ‘Aisha’s narration), the powerful opening dua he used, the difference between Tahajjud, Qiyam-ul-Layl, and Witr, and the spiritual benefits promised in the Qur’an and Sunnah.
Table of Contents
What Is Tahajjud Prayer?
The word tahajjud comes from the Arabic root h-j-d (هجد), which carries two opposite meanings: “to sleep” and “to wake from sleep for worship.” In Islamic legal usage, Tahajjud specifically means a night prayer offered after sleeping — not just any optional prayer at night. If you stay up after Isha and pray without sleeping, that is technically Qiyam-ul-Layl, not Tahajjud.
Allah commanded the Prophet ﷺ in Surah al-Isra’: “And from [part of] the night, pray with it as additional [worship] for you; it is expected that your Lord will resurrect you to a praised station.” (Qur’an 17:79). For the Prophet ﷺ, Tahajjud was obligatory; for the rest of the Ummah it is nafl (highly recommended voluntary worship), with reward second only to the five obligatory prayers.
Key takeaways:
- Tahajjud is the voluntary night prayer offered after sleeping — distinct from Qiyam-ul-Layl (any night prayer) and Witr (the closing odd-numbered prayer).
- Best time is the last third of the night, when Allah descends to the lowest heaven and invites supplicants (Sahih al-Bukhari 1145; Sahih Muslim 758).
- Prayed in pairs of two rakats; the Prophet ﷺ usually prayed 8 rakats Tahajjud + 3 Witr per Aisha’s testimony (Sahih al-Bukhari 1147).
- Commanded by the Quran in Surah al-Isra 17:79 and leads to Maqam Mahmud — the praised station.
- Rewards: sins forgiven, dua answered, spiritual elevation — second only in reward to the five obligatory prayers.
When to Pray Tahajjud — the Best Time
Tahajjud’s window opens after the obligatory Isha prayer and closes at the start of Fajr (true dawn). However, not every minute of this window is equal. The Prophet ﷺ identified a single window as the most virtuous of all:
“Our Lord, the Blessed and the Exalted, descends every night to the lowest heaven during the last third of the night, saying: Who is calling on Me — that I may answer him? Who is asking of Me — that I may give him? Who is seeking My forgiveness — that I may forgive him?”
(Sahih al-Bukhari 1145; Sahih Muslim 758)
To find your local last third of the night, take the time between Maghrib and Fajr and divide it into three equal parts. The third part — closest to Fajr — is when Allah’s mercy descends and dua is most likely to be answered. Practical example: if Maghrib is 7:00 PM and Fajr is 4:00 AM (a 9-hour night), each third is 3 hours, and the last third begins at 1:00 AM.
If waking that late is difficult, pray any time after Isha — the reward of Tahajjud is still earned, just not at its peak.
How to Pray Tahajjud — Step by Step
Tahajjud is structurally identical to any other two-rakat nafl prayer. There is no special formula or unique recitation requirement — the only essential difference is the time and the depth of dua. Follow these steps:
- Wake from sleep — even a short nap after Isha qualifies. Without sleep, the prayer is Qiyam-ul-Layl, not Tahajjud.
- Make wudu (ablution). The Prophet ﷺ sometimes used a siwak first; perform the act with focus.
- Find a quiet, clean spot facing the Qibla. Many Muslims pray Tahajjud in their bedroom; the Prophet ﷺ often prayed in his home.
- Make intention (niyyah) silently in the heart: “I intend to pray two rakats of Tahajjud for the sake of Allah.” Verbal niyyah is not required.
- Begin with takbir — raise your hands and say Allahu Akbar.
- First rakat: recite Surah al-Fatihah, then any surah or three verses you have memorized (longer recitation is better at Tahajjud).
- Ruku‘ — bow, saying Subhana Rabbiyal-‘Adheem three times.
- Stand from ruku‘, saying Sami‘a Allahu liman hamidah, Rabbana wa lakal-hamd.
- Sujood twice, saying Subhana Rabbiyal-A‘la three times in each prostration. The Prophet ﷺ lengthened sujood at night — this is the moment of closest nearness to Allah, ideal for whispered dua.
- Stand for the second rakat and repeat steps 6–9.
- After the second sujood of the second rakat, sit for tashahhud and conclude with the salaam to right and left.
- Repeat in pairs as long as your strength and time allow. After the last pair, you may pray Witr (an odd-numbered prayer) to seal the night, as the Prophet ﷺ commanded: “Make the last of your prayer at night Witr.” (Bukhari 998; Muslim 751)
How Many Rakats Did the Prophet ﷺ Pray?
There is no fixed maximum, but the most authentic guidance comes from the Prophet’s wife ‘Aisha (may Allah be pleased with her), who described his usual nightly practice:
“Allah’s Messenger ﷺ never used to pray more than eleven rakats either in Ramadan or any other month. He used to pray four rakats — do not ask about their beauty and length — then four others, do not ask about their beauty and length — and then three rakats.”
(Sahih al-Bukhari 1147)
The eleven rakats consisted of eight rakats of Tahajjud (in pairs of two) followed by three rakats of Witr. Beginners are encouraged to start with two rakats consistently rather than reach for eight inconsistently — the Prophet ﷺ said: “The most beloved deeds to Allah are those done consistently, even if small.” (Bukhari 6464; Muslim 783).
The Prophet’s ﷺ Opening Dua for Tahajjud
Ibn ‘Abbas (may Allah be pleased with him) narrated that when the Prophet ﷺ got up at night to pray Tahajjud, he would say this remarkable supplication:
اللَّهُمَّ لَكَ الْحَمْدُ أَنْتَ نُورُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ أَنْتَ قَيِّمُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ أَنْتَ الْحَقُّ وَوَعْدُكَ الْحَقُّ، وَلِقَاؤُكَ حَقٌّ، وَقَوْلُكَ حَقٌّ، وَالْجَنَّةُ حَقٌّ، وَالنَّارُ حَقٌّ، وَالنَّبِيُّونَ حَقٌّ، وَمُحَمَّدٌ ﷺ حَقٌّ، وَالسَّاعَةُ حَقٌّ
Transliteration: Allahumma lakal-hamd, Anta noorus-samawati wal-ard wa man feehinna. Wa lakal-hamd, Anta qayyimus-samawati wal-ard wa man feehinna. Wa lakal-hamd, Antal-Haqq, wa wa‘dukal-haqq, wa liqaa’uka haqq, wa qawluka haqq, wal-jannatu haqq, wan-naaru haqq, wan-nabiyyoona haqq, wa Muhammadun ﷺ haqq, was-saa‘atu haqq.
Meaning: “O Allah, all praise is for You. You are the Light of the heavens and the earth and all that is in them. All praise is for You. You are the Sustainer of the heavens and the earth and all that is in them. All praise is for You. You are the Truth, Your promise is the truth, meeting You is the truth, Your word is the truth, Paradise is the truth, the Fire is the truth, the Prophets are the truth, Muhammad ﷺ is the truth, and the Final Hour is the truth.” (Sahih al-Bukhari 1120; Sahih Muslim 769)
Reciting this opening anchors your Tahajjud in the same words the Prophet ﷺ used — a statement of tawhid, of belief in the unseen, and of submission before any other request is made.
6 Surprising Benefits of Tahajjud Prayer
- Closeness to Allah unmatched by any voluntary prayer. The Prophet ﷺ said: “The closest a servant comes to his Lord is in the depth of the night.” (Jami‘ at-Tirmidhi 3579, sahih).
- A station of praise (maqam mahmood) promised in the Qur’an — Allah ties the reward of Tahajjud directly to elevation in rank (Qur’an 17:79).
- Forgiveness of sins. Bilal narrated that the Prophet ﷺ encouraged night prayer because “it is the practice of the righteous before you, a means of nearness to your Lord, an expiation for sins, and a barrier against evil.” (Jami‘ at-Tirmidhi 3549).
- Accepted dua. The last third of the night is the prime hour for accepted supplication, as Allah descends to the lowest heaven (Bukhari 1145). Use the chance to ask for forgiveness, guidance, halal sustenance, a righteous spouse, or relief from anxiety.
- The best prayer after the obligatory prayers. The Prophet ﷺ said: “The best prayer after the prescribed prayers is the night prayer.” (Sahih Muslim 1163).
- Distinction in this life and the next. Allah praises the night-worshippers: “Their sides forsake their beds, calling upon their Lord in fear and hope, and they spend out of what We have provided them.” (Qur’an 32:16).
Tahajjud vs Qiyam-ul-Layl vs Witr
These three are constantly confused; the distinctions are simple once spelled out.
- Qiyam-ul-Layl (قِيَامُ اللَّيْل) — literally “standing in the night.” The general term for any voluntary prayer offered between Isha and Fajr, regardless of whether you slept first.
- Tahajjud (تَهَجُّد) — a specific subset of Qiyam-ul-Layl that is offered after waking from sleep. Every Tahajjud is Qiyam-ul-Layl, but not every Qiyam-ul-Layl is Tahajjud.
- Witr (وِتْر) — literally “odd.” An emphasized Sunnah prayer of one, three, five, seven, or nine rakats, prayed as the final prayer of the night. The Prophet ﷺ never left Witr, even while travelling. It is independent of Tahajjud but commonly prayed immediately after it to “seal” the night.
Practically: pray Witr after Isha if you fear missing it. If you regularly wake for Tahajjud, delay Witr to the end of your night prayer.
Common Mistakes to Avoid
- Skipping sleep entirely. If you simply stay up after Isha, you are praying Qiyam-ul-Layl — still rewarded, but not technically Tahajjud.
- Praying the long count once and abandoning it. Two rakats every night beats eight rakats once a month. Consistency is the metric Allah weighs (Bukhari 6464).
- Combining Tahajjud and Witr in one continuous unit. They are separate prayers; conclude Tahajjud with salaam before standing for Witr.
- Praying after Fajr time enters. Once the Adhan of Fajr is called, the window for Tahajjud has closed.
- Sleeping right after praying. While the Prophet ﷺ sometimes lay on his right side, the more virtuous moment is to remain in dhikr and dua until Fajr.
What time should I pray Tahajjud?
Tahajjud’s window opens after Isha and closes at Fajr, but the most rewarding time is the last third of the night. To calculate it, divide the time between Maghrib and Fajr into three equal parts; the last third is when Allah descends to the lowest heaven and answers dua (Sahih al-Bukhari 1145, Sahih Muslim 758).
How many rakats is Tahajjud?
There is no fixed maximum. The Prophet ﷺ usually prayed eight rakats of Tahajjud followed by three rakats of Witr, totalling eleven, as narrated by ‘Aisha (Sahih al-Bukhari 1147). Beginners are encouraged to start with two rakats consistently and increase gradually.
Can I pray Tahajjud without sleeping?
Strictly speaking, Tahajjud requires waking from sleep — the word literally means “to wake for worship.” If you stay up after Isha and pray, you are performing Qiyam-ul-Layl rather than Tahajjud. Both are highly rewarded; only the technical naming differs.
Is Tahajjud Fard or Sunnah?
Tahajjud is Sunnah Mu’akkadah / Nafl Mustahabb — an emphasized voluntary prayer for the general Ummah. It was obligatory only on the Prophet ﷺ. The Qur’an refers to it as “additional” worship beyond the five daily prayers (17:79).
What dua should I recite during Tahajjud?
The Prophet ﷺ opened Tahajjud with “Allahumma lakal-hamd, Anta noorus-samawati wal-ard…” (Sahih al-Bukhari 1120). After the prayer, especially in sujood and the last third of the night, ask Allah for forgiveness, guidance, halal provision, and any sincere need — this is the most likely hour for dua to be answered.
What is the difference between Tahajjud and Qiyam-ul-Layl?
Qiyam-ul-Layl is any voluntary prayer offered between Isha and Fajr. Tahajjud is the specific portion of Qiyam-ul-Layl prayed after waking from sleep. Every Tahajjud is Qiyam-ul-Layl, but not every Qiyam-ul-Layl is Tahajjud.
Make Tahajjud a habit, not an event. Even two rakats prayed in the silence of the last third — with the Prophet’s ﷺ opening words on your tongue and a sincere dua in your heart — can change the trajectory of your week, your year, and your final reckoning. Allah is calling on every servant in those last hours; the only question is who is awake to answer.











