Prayer

How to Pray Tahajjud: Time, Rakahs and Duas

November 12, 2026

A practical guide to the night prayer from the Quran and Sahih hadith: what Tahajjud is, how to work out the last third of the night, how many rak'ahs to pray, the duas the Prophet ﷺ used, and how to build the habit if you have never prayed it.


Every night, in the last third of the night, something happens that most of the world sleeps through. The Prophet ﷺ said: "Our Lord, Blessed and Exalted is He, 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 him? Who is seeking My forgiveness, that I may forgive him?" (Sahih al-Bukhari 1145; Sahih Muslim 758).

Tahajjud is the prayer that answers that call. This guide explains what it is, when exactly to pray it, how many rak'ahs, what to recite, and — most importantly for beginners — how to start small and make it last.

What Is Tahajjud?

وَمِنَ ٱلَّیۡلِ فَتَهَجَّدۡ بِهِۦ نَافِلَةࣰ لَّكَ عَسَىٰۤ أَن یَبۡعَثَكَ رَبُّكَ مَقَامࣰا مَّحۡمُودࣰا

And from (part of) the night, pray Tahajjud with it as an extra (prayer) for you; it may be that your Lord will raise you to a praised station.

Quran 17:79

The word tahajjud comes from hujud, sleep; tahajjud means to abandon sleep for prayer. "Qiyam al-layl" (standing at night) and "salat al-layl" (the night prayer) are broader terms for any voluntary prayer between Isha and Fajr. Many scholars use "Tahajjud" specifically for night prayer offered after having slept, which is the most virtuous form, though any night prayer after Isha counts as qiyam al-layl.

Tahajjud is a voluntary (nafl) prayer — a confirmed Sunnah that the Prophet ﷺ never abandoned. The Prophet ﷺ said: "The best prayer after the obligatory prayers is the prayer at night" (Sahih Muslim 1163).

The Night Prayer in the Quran

Some of the earliest revelation, in Surah Al-Muzzammil, was a command to stand at night:

یَـٰۤأَیُّهَا ٱلۡمُزَّمِّلُ قُمِ ٱلَّیۡلَ إِلَّا قَلِیلࣰا نِّصۡفَهُۥۤ أَوِ ٱنقُصۡ مِنۡهُ قَلِیلًا أَوۡ زِدۡ عَلَیۡهِ وَرَتِّلِ ٱلۡقُرۡءَانَ تَرۡتِیلًا

O you wrapped in garments, stand (in prayer) through the night, except a little — half of it, or a little less, or a little more — and recite the Quran with measured recitation.

Quran 73:1–4

إِنَّ نَاشِئَةَ ٱلَّیۡلِ هِیَ أَشَدُّ وَطۡـࣰٔا وَأَقۡوَمُ قِیلًا

Indeed, rising at night is stronger in effect and more suitable for words.

Quran 73:6

The night is "more suitable for words": with no noise and no distractions, the recitation reaches the heart. The Quran describes the believers as people who leave their beds for this:

تَتَجَافَىٰ جُنُوبُهُمۡ عَنِ ٱلۡمَضَاجِعِ یَدۡعُونَ رَبَّهُمۡ خَوۡفࣰا وَطَمَعࣰا وَمِمَّا رَزَقۡنَـٰهُمۡ یُنفِقُونَ

Their sides forsake their beds; they call upon their Lord in fear and hope, and spend from what We have provided them.

Quran 32:16

كَانُوا۟ قَلِیلࣰا مِّنَ ٱلَّیۡلِ مَا یَهۡجَعُونَ وَبِٱلۡأَسۡحَارِ هُمۡ یَسۡتَغۡفِرُونَ

They used to sleep but little of the night, and in the hours before dawn they would seek forgiveness.

Quran 51:17–18

When Is the Time for Tahajjud?

The time for night prayer begins after the Isha prayer and ends at the start of Fajr. Any time in this window is valid, but the best time is the last third of the night — the time of Allah's descent described in the hadith above.

How to calculate the last third of the night

In Islamic law the night runs from Maghrib to Fajr, not from midnight to sunrise. To find the last third:

  • Find tonight's Maghrib time and tomorrow's Fajr time (use the prayer times page for your city).
  • Work out the length of the night between them.
  • Divide by three. The last third begins that amount of time before Fajr.
  • Example: Maghrib at 5:30 pm and Fajr at 5:30 am give a 12-hour night. One third is 4 hours, so the last third begins at 1:30 am.
  • In summer the nights are short: Maghrib at 8:45 pm and Fajr at 3:45 am give a 7-hour night, so the last third begins around 1:25 am — only about 2 hours 20 minutes before Fajr.

If the last third is too difficult, pray before you sleep or in the middle of the night. The Prophet ﷺ prayed at different parts of the night at different times (Sahih al-Bukhari 1141).

How Many Rak'ahs?

There is no fixed number. The Prophet ﷺ said: "The night prayer is two by two. When one of you fears the arrival of dawn, let him pray one rak'ah to make what he has prayed odd (witr)" (Sahih al-Bukhari 990; Sahih Muslim 749).

  • His usual practice: Aisha said he did not pray more than eleven rak'ahs at night, in Ramadan or outside it (Sahih al-Bukhari 1147; Sahih Muslim 738). Ibn Abbas reported thirteen on a night he stayed with him (Sahih al-Bukhari 1138).
  • The minimum: two rak'ahs followed by Witr. Even two rak'ahs with sincerity count.
  • The structure: pray in pairs of two rak'ahs, each ending with tashahhud and salam, then finish with Witr (one or three rak'ahs) if you did not pray it after Isha.

The Prophet ﷺ also said: "Make Witr the last of your prayer at night" (Sahih al-Bukhari 998; Sahih Muslim 751). If you already prayed Witr after Isha and then wake for Tahajjud, pray your pairs of two and do not repeat Witr — "there are not two Witrs in one night" (Sunan Abi Dawud 1439, graded sahih).

How to Pray Tahajjud Step by Step

1. Sleep with the intention to wake

Pray Isha, go to bed early, and intend to wake. Set an alarm for the last third (or earlier). Sleeping in a state of wudu and reciting the bedtime adhkar helps.

2. On waking, remember Allah

لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ، لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ

There is no god but Allah, alone without partner. His is the dominion and His is the praise, and He has power over all things.

Sahih al-Bukhari 1154

The full narration continues: "Al-hamdu lillah, wa subhanallah, wa la ilaha illallah, wallahu akbar, wa la hawla wa la quwwata illa billah" — then "Allahumma-ghfir li" (O Allah, forgive me). The Prophet ﷺ said that whoever wakes at night and says this, then makes dua, will be answered; and if he performs wudu and prays, his prayer will be accepted (Sahih al-Bukhari 1154).

He also explained that Shaytan ties three knots at the back of the head of a sleeping person. When he wakes and remembers Allah, one knot is undone; when he makes wudu, another is undone; and when he prays, the last is undone and he begins the day energetic and in good spirits (Sahih al-Bukhari 1142; Sahih Muslim 776).

3. Make wudu and use the siwak

The Prophet ﷺ would clean his teeth with the siwak when he got up at night (Sahih al-Bukhari 245).

4. Begin with two light rak'ahs

"When one of you gets up at night to pray, let him begin his prayer with two short rak'ahs" (Sahih Muslim 768). These warm you up and shake off sleep.

5. Pray in pairs, with long recitation and long prostration

Recite whatever you know of the Quran. Lengthen the standing, the ruku' and especially the sujud, where you are closest to Allah — make your personal duas there in your own language, which is permitted in voluntary prayer according to many scholars. You may recite aloud or quietly; the Prophet ﷺ told Abu Bakr to raise his voice a little and Umar to lower his a little (Sunan Abi Dawud 1329).

Before or at the start of the night prayer, the Prophet ﷺ would say this dua of praise:

اللَّهُمَّ لَكَ الْحَمْدُ، أَنْتَ قَيِّمُ السَّمَاوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ، لَكَ مُلْكُ السَّمَاوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ

O Allah, to You belongs all praise. You are the Sustainer of the heavens and the earth and all within them. To You belongs all praise; Yours is the dominion of the heavens and the earth and all within them…

Sahih al-Bukhari 1120

6. End with Witr, then dua and istighfar

Finish with Witr if you have not prayed it. Spend the remaining minutes before Fajr in istighfar — "and in the hours before dawn they would seek forgiveness" (51:18) — and in dua.

Building the Habit: A Beginner's Plan

The Prophet ﷺ said: "The most beloved deeds to Allah are the most consistent, even if small" (Sahih al-Bukhari 6464; Sahih Muslim 783). He also told 'Abdullah ibn 'Amr: "Do not be like so-and-so, who used to pray at night and then abandoned it" (Sahih al-Bukhari 1152). Start with something you can keep:

  • Weeks 1–2: Before you sleep, pray two rak'ahs and Witr after Isha. This is qiyam al-layl, and it builds the routine.
  • Weeks 3–4: Set your alarm 20 minutes before Fajr, pray two rak'ahs and make dua until the adhan.
  • Month 2: Move the alarm earlier, into the last third, and pray four to eight rak'ahs.
  • Sleep earlier: avoid screens and late-night conversation after Isha — the Prophet ﷺ disliked talking after Isha without need (Sahih al-Bukhari 568).
  • Take a short midday nap (qaylulah), a practice of the Companions, if it helps you wake at night.
  • Wake a family member: "May Allah have mercy on a man who gets up at night to pray and wakes his wife" (Sunan Abi Dawud 1308, graded hasan).

If You Miss It

Aisha said that if the Prophet ﷺ missed his night prayer because of pain or sleep, he would pray twelve rak'ahs during the day (Sahih Muslim 746). So if you oversleep, you can pray your usual amount in the forenoon (after sunrise and before Dhuhr) — with an even number, since Witr is not made up in this way according to many scholars.

Why the Prophet ﷺ Prayed Until His Feet Swelled

The Prophet ﷺ would stand in prayer at night until his feet became swollen. Aisha asked why he did this when Allah had forgiven all his sins. He replied: "Should I not be a grateful servant?" (Sahih al-Bukhari 4837; Sahih Muslim 2820). Tahajjud is not only a way to ask — it is a way to thank. Yet he also taught moderation: the most beloved night prayer to Allah is the prayer of Dawud, who slept half the night, prayed a third of it, and slept a sixth (Sahih al-Bukhari 1131; Sahih Muslim 1159).

Frequently Asked Questions

Do I have to sleep before praying Tahajjud?

Night prayer is valid at any time after Isha. Many scholars reserve the name "Tahajjud" for prayer after sleeping, which carries extra virtue, but praying before you sleep is still qiyam al-layl and is rewarded.

Can I pray Tahajjud reading from a phone or mushaf?

Many scholars permit reading from a mushaf in voluntary prayer; Aisha's servant Dhakwan would lead her in prayer reading from a mushaf (reported by al-Bukhari without a full chain). Others prefer reciting from memory. If you know only a few short surahs, recite those — repeating them is perfectly fine.

Is Tahajjud the same as Taraweeh?

Both are forms of night prayer. Taraweeh is the congregational night prayer in Ramadan, usually prayed after Isha; Tahajjud is usually prayed individually later in the night. In Ramadan you may pray both.

Can women pray Tahajjud during menstruation?

No prayer is performed during menstruation, but she can still wake in the last third for dhikr, dua and istighfar, which are among the main purposes of that time.

May Allah make us among those whose sides forsake their beds, who call upon Him in fear and hope, and who seek His forgiveness before dawn.