Tahajjud Prayer: Best Time, How to Pray and Virtues

The best time for Tahajjud is the last third of the night, before Fajr. To find it, take the time from Maghrib to Fajr, divide by three, and subtract one third from Fajr. Tahajjud is prayed after some sleep, in units of two rak’ahs, commonly 8 rak’ahs plus Witr to make 11. Any amount after Isha counts as night prayer.

Tahajjud is the voluntary prayer of the night, and almost every Muslim who keeps it says the same thing: the hardest part is getting up, and the easiest part is everything after. This guide shows how to work out its time for your city, how to pray it, how many rak’ahs are usual, and what the Sunni schools and Ja’fari practice say about it.

What Tahajjud means

The word comes from hujud, sleep; tahajjud means giving up sleep, so the term usually refers to night prayer offered after waking. Scholars also use qiyam al-layl (standing at night) for any voluntary prayer between Isha and Fajr; in Ramadan, Tarawih is a form of it. In Ja’fari terminology the same practice is salat al-layl, the night prayer.

The Qur’an addresses it directly: “And from [part of] the night, pray with it [i.e., recitation of the Qur’ān] as additional [worship] for you; it is expected that your Lord will resurrect you to a praised station” (Qur’an 17:79, Sahih International). Surah al-Muzzammil opens with “Arise [to pray] the night, except for a little – Half of it – or subtract from it a little” (Qur’an 73:2-3) and notes that “the hours of the night are more effective for concurrence [of heart and tongue]” (73:6). Later, 73:20 eases the burden: “recite what is easy [for you] of the Qur’ān” (Qur’an 73:20).

The believers are described as people who “used to sleep but little of the night, And in the hours before dawn they would ask forgiveness” (Qur’an 51:17-18).

Why the last third of the night

The strongest reason is the hadith of the divine descent. Abu Huraira reported that the Prophet ﷺ said: “Our Lord, the Blessed, the Superior, comes every night down on the nearest Heaven to us when the last third of the night remains, saying: ‘Is there anyone to invoke Me, so that I may respond to invocation? Is there anyone to ask Me, so that I may grant him his request? Is there anyone seeking My forgiveness, so that I may forgive him?'” (Sahih al-Bukhari 1145).

He also described the night prayer of the Prophet Dawud as the most beloved to Allah: “He used to sleep for half of the night and then pray for one third of the night and again sleep for its sixth part” (Sahih al-Bukhari 1131). And: “the most excellent prayer after what is prescribed is prayer during the night” (Sahih Muslim 1163a).

How to calculate the Tahajjud time

The Islamic night runs from Maghrib (sunset) to Fajr. Most scholars measure the thirds of the night between those two times.

  1. Find tonight’s Maghrib and tomorrow’s Fajr on your city page.
  2. Work out the length of the night.
  3. Divide by three.
  4. Subtract one third from Fajr. That is when the last third begins.

Example: Dubai, first night of Ramadan 2027. PrayerZTime’s Ramadan timetable for Dubai gives Maghrib at 6:08 PM and the next Fajr at 5:41 AM. The night is 11 hours 33 minutes; a third is 3 hours 51 minutes; so the last third starts at about 1:50 AM.

Example: London on the same night. Maghrib 5:02 PM, next Fajr 5:34 AM: a 12 hour 32 minute night, a third of 4 hours 11 minutes, and the last third from about 1:23 AM. By late June the night between Maghrib and an adjusted Fajr in London shrinks to a few hours, and the last third can start around 1 AM; check the daily times rather than a fixed clock.

Night length (Maghrib to Fajr)One thirdLast third starts
9 hours3 h3 h before Fajr
10 hours 30 min3 h 30 min3 h 30 min before Fajr
12 hours4 h4 h before Fajr

The window closes at Fajr. If you wake just before the adhan, even two quick rak’ahs and Witr are worth it.

How to pray Tahajjud

  1. Sleep first, even briefly, after praying Isha. This is what makes it tahajjud rather than prayer straight after Isha, though any prayer after Isha counts as night prayer.
  2. Wake, remember Allah and make wudu. The Prophet ﷺ described Satan tying three knots on a sleeper; remembering Allah undoes one, wudu the second and praying the third (Sahih al-Bukhari 1142). Our wudu guide covers the steps.
  3. Begin with two short rak’ahs. “When any one of you gets up at night, he should begin the prayer with two short rak’ahs” (Sahih Muslim 768).
  4. Pray in pairs. “The night prayer is offered as two Rak’at followed by two Rak’at and so on” (Sahih al-Bukhari 990). Each pair ends with tashahhud and salam, prayed like any two-rak’ah prayer in our step-by-step salah guide. Hanafis also allow four rak’ahs with one salam at night.
  5. Recite at length if you can. “The most excellent prayer is that in which the duration of standing is longer” (Sahih Muslim 756). Reciting from memory is best, but reading from a mushaf in voluntary prayer is accepted by several schools, including the Shafi’i and Hanbali.
  6. Close with Witr. “Make witr as your last prayer at night” (Sahih al-Bukhari 998). If you prayed Witr after Isha, scholars generally say not to repeat it; pray your pairs and stop.
  7. Make du’a, especially in sujud and before Fajr.

How many rak’ahs is Tahajjud?

There is no minimum beyond two and no fixed maximum. The best-known pattern comes from ‘A’isha: “Allah’s Messenger (ﷺ) never exceeded eleven rak’at in Ramadan or in other months; he used to offer four rak’at– do not ask me about their beauty and length, then four rak’at, do not ask me about their beauty and length, and then three rak’at” (Sahih al-Bukhari 1147).

PracticeNight prayerWitrTotal
Short2 rak’ahs1 or 33 to 5
Middle4 to 6 rak’ahs1 or 35 to 9
‘A’isha’s description8 rak’ahs311
Ja’fari salat al-layl8 rak’ahsShaf’ 2 + Witr 111

In the Ja’fari list of daily nafilah prayers, the night prayer is eleven rak’ahs (Sistani, Islamic Laws, Ruling 751). Sistani’s rulings note that the majority view starts its time at midnight, while “it is not farfetched” that it begins at the start of the night, and that it is better prayed near the morning call to prayer (Ruling 760). The rakats for every daily prayer, including Witr, are in our rakats table.

The schools on Tahajjud

All schools treat night prayer as a strongly recommended voluntary act for the community. Scholars discussed whether it was obligatory for the Prophet ﷺ himself, reading “additional [worship] for you” in 17:79 in different ways, but nobody holds it obligatory on other Muslims. Witr is the point where they differ: Hanafis count it wajib, the other Sunni schools a strong sunnah, as explained in our Isha and Witr guide.

Moderation is part of the teaching. When the Prophet ﷺ found a rope that Zaynab held on to when tired, he said: “Don’t use it. Remove the rope. You should pray as long as you feel active, and when you get tired, sit down” (Sahih al-Bukhari 1150). Two rak’ahs kept up every night are better than a long night once a month and nothing after.

Making Tahajjud a habit

  • Pray Isha early and sleep early. In winter in Toronto or Manchester, the nights are long and the last third comes at a comfortable hour.
  • Wake 15 to 20 minutes before Fajr at first. Four rak’ahs and Witr fit easily, and then you pray Fajr on time.
  • Wake your family. “May Allah have mercy on a man who gets up at night and prays, and awakens his wife”, and the same for a woman who wakes her husband (Sunan Abi Dawud 1308, graded hasan sahih by al-Albani).
  • Use Ramadan to start. Suhoor already gets you up in the last third, so a few rak’ahs before eating are easy; see suhoor and iftar times explained.
  • Avoid the forbidden moments. Night prayer has none of the disliked times; those fall around sunrise, the zenith and sunset, as explained in forbidden prayer times.

Frequently asked questions

What is the best time for Tahajjud?

The last third of the night, before Fajr, when Allah descends to the nearest heaven and answers those who call on Him (Sahih al-Bukhari 1145). Divide the time from Maghrib to Fajr by three; the last third begins one third before Fajr. In Dubai on 8 February 2027 that is about 1:50 AM.

Can I pray Tahajjud without sleeping?

Any voluntary prayer between Isha and Fajr counts as night prayer (qiyam al-layl). Many scholars reserve the name Tahajjud for prayer after sleeping, so sleeping first, even briefly, follows the Sunnah more closely. Praying before bed is still rewarded if you fear you will not wake.

How many rak’ahs is Tahajjud?

At least two, in pairs, with no fixed limit. ‘A’isha said the Prophet ﷺ did not exceed eleven rak’ahs including Witr (Sahih al-Bukhari 1147). Ja’fari salat al-layl is also eleven: eight, then shaf’ and one rak’ah of Witr.

Can I pray Tahajjud after Witr?

Yes. If you prayed Witr after Isha and then wake up, pray as many pairs as you like. Most scholars say you do not repeat Witr, since the instruction is to make Witr your last prayer of the night, not to pray it twice.

When does Tahajjud time end?

At Fajr, when true dawn begins. Once the Fajr adhan is called, pray the two sunnah rak’ahs of Fajr and then the obligatory prayer instead.

Is Tahajjud obligatory?

No. It is a highly recommended voluntary prayer in all schools. Sahih Muslim 1163a calls night prayer the most excellent prayer after the obligatory ones. Witr, which closes it, is wajib for Hanafis and a strong sunnah for the other schools.

Related guides