prayd

Night prayer

What is tahajjud?

Tahajjud is the voluntary night prayer, prayed after Isha and before Fajr, ideally after some sleep. The Quran mentions it in Surah al-Isra 17:79, and in Sahih Muslim 1163 the Prophet ﷺ called the night prayer the best prayer after the obligatory ones.

What it is and where it comes from

The word comes from the verse in Surah al-Isra 17:79, where Allah tells the Prophet ﷺ to pray part of the night as something additional for him, and says that his Lord may raise him to a praised station.

It's a voluntary prayer, on top of the five obligatory ones. Surah adh-Dhariyat 51:17 and 18 describe the people of taqwa as those who slept only a little of the night and sought forgiveness before dawn, and that's the picture most people have in mind when they talk about tahajjud.

In Sahih Muslim 1163, Abu Hurairah narrates that the Prophet ﷺ was asked which prayer is best after the obligatory ones, and he said the prayer in the middle of the night.

When to pray it

Its time is anywhere after Isha until Fajr comes in. Most people aim for the last third of the night, because of the hadith in Sahih al-Bukhari 1145. The Prophet ﷺ said that Allah descends to the nearest heaven every night when the last third remains, and asks who is calling on Him so He can answer, who is asking so He can give, and who is seeking forgiveness so He can forgive.

The last third is worked out the same way as the middle of the night. You take the time from Maghrib to Fajr, split it into three, and the last third starts two-thirds of the way through. So it moves through the year with sunset and dawn.

Place and dateLast third startsFajr
London, 21 Dec 202601:1805:59
London, 21 Jun 202701:3403:40
Dubai, 21 Dec 202601:3805:37
New York, 21 Dec 202601:2705:54

How the times were worked out

These come from the open-source Adhan library, which Prayd also uses. London uses the Muslim World League method with the seventh-of-the-night high-latitude rule, Dubai the Dubai method and New York the North America method. Your local mosque may follow a different method, so check with your local mosque.

How many rak'ahs

There's no fixed number. In Sahih al-Bukhari 990, Ibn 'Umar narrates that a man asked about the night prayer and the Prophet ﷺ said it's two rak'ahs followed by two, and if you fear dawn is coming, pray one to make it odd.

'Aisha describes what he usually did in Sahih al-Bukhari 1147. He never prayed more than eleven rak'ahs, in Ramadan or outside it, four, then four, then three, and she said not to ask about how beautiful and long they were.

So you could pray two rak'ahs and witr, or eight and three, or whatever you can manage. Two is a perfectly good start.

How to actually start

A lot of people try tahajjud for the first time in Ramadan, get up three nights in a row, and then they're exhausted and it falls off. What I'd do is start smaller than you think you need to.

The first thing is to go to sleep earlier. That's most of it. Then set an alarm 20 or 30 minutes before Fajr, get up, make wudu, pray two rak'ahs and witr, make dua, and then pray Fajr when it comes in. In winter in the UK, Fajr is late enough that this doesn't mean a 3am alarm.

There's a hadith in Sahih al-Bukhari 1142 that when you sleep, Shaytan ties three knots at the back of your head. Remembering Allah when you wake undoes one, wudu undoes the second and praying undoes the third, so you start the day energetic and in a good mood. Getting up for tahajjud means you've done all three before Fajr even starts.

And keep it small and regular. Sahih al-Bukhari 6464 says the deeds most loved by Allah are the most regular, even if small. Two rak'ahs a few nights a week that you keep is worth more to you than eleven that you do once.

Where Prayd comes in

Prayd doesn't track tahajjud, and it won't shield your apps for voluntary prayers. What it does have is the Fajr alarm. You can set it anywhere from 30 minutes before Fajr to 60 minutes after, and you can have it stop only when you scan your prayer mat, so you're out of bed and standing on the mat before it goes quiet. If you set it 30 minutes early, that's your tahajjud window.

Questions people ask

Do you have to sleep before tahajjud?

The word is usually explained as prayer after sleep, and most people pray it after some sleep. Scholars discuss whether night prayer before sleeping counts as tahajjud, so ask your imam if this matters to you.

How many rak'ahs is tahajjud?

There's no fixed number. Sahih al-Bukhari 990 says pray two by two, and Sahih al-Bukhari 1147 says the Prophet ﷺ didn't pray more than eleven.

What time is the last third of the night?

Split the time between Maghrib and Fajr into three. In London on 21 December 2026 it starts at about 01:18 on the Muslim World League method.

Is tahajjud the same as witr?

Witr is the odd-numbered prayer that ends the night prayers, as in Sahih al-Bukhari 990. Tahajjud is the night prayer more widely, and witr is often prayed at the end of it.

Is tahajjud the same as tarawih?

Both are night prayer. Tarawih is the name for the night prayer in Ramadan, usually prayed in congregation after Isha. Our page on Isha and tarawih explains the difference.

Sources

  1. Quran 17:79Pray part of the night as additional worshipChecked 4 December 2026
  2. Quran 51:17-18They slept little of the night and sought forgiveness before dawnChecked 4 December 2026
  3. Sahih Muslim 1163Best prayer after the obligatory is the night prayerChecked 4 December 2026
  4. Sahih al-Bukhari 1145Allah descends in the last third of the nightChecked 4 December 2026
  5. Sahih al-Bukhari 990Night prayer two by two, one for witrChecked 4 December 2026
  6. Sahih al-Bukhari 1147Never more than eleven rak'ahsChecked 4 December 2026
  7. Sahih al-Bukhari 1142Three knots of ShaytanChecked 4 December 2026
  8. Sahih al-Bukhari 6464Most beloved deeds are the most regularChecked 4 December 2026
  9. Adhan library (adhan-js 4.4)Last-third and Fajr times in the tableChecked 4 December 2026
  10. Prayd guide: Fajr alarmAlarm on AlarmKit, set 30 minutes before to 60 minutes after FajrChecked 4 December 2026