Tahajjud is the voluntary night prayer, and Witr is the odd-numbered prayer that closes the night. This short guide explains when and how to pray them, and what the Quran and the Sahih hadith say about their virtue.
Tahajjud in the Quran
وَمِنَ ٱلَّيْلِ فَتَهَجَّدْ بِهِۦ نَافِلَةً لَّكَ عَسَىٰٓ أَن يَبْعَثَكَ رَبُّكَ مَقَامًا مَّحْمُودًا
Meaning: 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.
Reference: Quran 17:79 — Surah Al-Isra, ayah 79.
تَتَجَافَىٰ جُنُوبُهُمْ عَنِ ٱلْمَضَاجِعِ يَدْعُونَ رَبَّهُمْ خَوْفًا وَطَمَعًا وَمِمَّا رَزَقْنَـٰهُمْ يُنفِقُونَ
Meaning: Their sides part [i.e., they arise] from [their] beds; they supplicate their Lord in fear and aspiration, and from what We have provided them, they spend.
Reference: Quran 32:16 — Surah As-Sajdah, ayah 16.
كَانُوا۟ قَلِيلًا مِّنَ ٱلَّيْلِ مَا يَهْجَعُونَ وَبِٱلْأَسْحَارِ هُمْ يَسْتَغْفِرُونَ
Meaning: They used to sleep but little of the night, And in the hours before dawn they would ask forgiveness,
Reference: Quran 51:17-18 — Surah Adh-Dhariyat, ayah 17-18.
The best time
Tahajjud is prayed after Isha and a period of sleep, and before Fajr. The best time is the last third of the night, when Allah draws near to His servants.
يَنْزِلُ رَبُّنَا تَبَارَكَ وَتَعَالَى كُلَّ لَيْلَةٍ إِلَى السَّمَاءِ الدُّنْيَا حِينَ يَبْقَى ثُلُثُ اللَّيْلِ الآخِرُ يَقُولُ مَنْ يَدْعُونِي فَأَسْتَجِيبَ لَهُ مَنْ يَسْأَلُنِي فَأُعْطِيَهُ مَنْ يَسْتَغْفِرُنِي فَأَغْفِرَ لَهُ
Meaning: Our Lord, the Blessed and Most High, descends every night to the lowest heaven when the last third of the night remains. He says: Who is calling on Me so that I may answer him? Who is asking Me so that I may give him? Who is asking My forgiveness so that I may forgive him?
Reference: Sahih al-Bukhari 1145 — Prayer at Night (Tahajjud); Narrated Abu Huraira. Grade: Sahih (Sahih al-Bukhari).
إِنَّ فِي اللَّيْلِ لَسَاعَةً لاَ يُوَافِقُهَا رَجُلٌ مُسْلِمٌ يَسْأَلُ اللَّهَ خَيْرًا مِنْ أَمْرِ الدُّنْيَا وَالآخِرَةِ إِلاَّ أَعْطَاهُ إِيَّاهُ وَذَلِكَ كُلَّ لَيْلَةٍ
Meaning: There is an hour in the night in which no Muslim asks Allah for good in this world and the next but Allah gives it to him, and that is every night.
Reference: Sahih Muslim 757 — The Book of Prayer - Travellers; Jabir said he heard Allah's Messenger (ﷺ) say. Grade: Sahih (Sahih Muslim).
Its virtue
أَفْضَلُ الصِّيَامِ بَعْدَ رَمَضَانَ شَهْرُ اللَّهِ الْمُحَرَّمُ وَأَفْضَلُ الصَّلاَةِ بَعْدَ الْفَرِيضَةِ صَلاَةُ اللَّيْلِ
Meaning: The best fast after Ramadan is in Allah's month of Muharram, and the best prayer after the obligatory prayers is the night prayer.
Reference: Sahih Muslim 1163 — The Book of Fasting; Abu Haraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying. Grade: Sahih (Sahih Muslim).
أَحَبُّ الصَّلاَةِ إِلَى اللَّهِ صَلاَةُ دَاوُدَ ـ عَلَيْهِ السَّلاَمُ ـ وَأَحَبُّ الصِّيَامِ إِلَى اللَّهِ صِيَامُ دَاوُدَ، وَكَانَ يَنَامُ نِصْفَ اللَّيْلِ وَيَقُومُ ثُلُثَهُ وَيَنَامُ سُدُسَهُ، وَيَصُومُ يَوْمًا وَيُفْطِرُ يَوْمًا
Meaning: The most beloved prayer to Allah is the prayer of Dawud (David): he used to sleep half of the night, pray for a third of it and sleep for a sixth.
Reference: Sahih al-Bukhari 1131 — Prayer at Night (Tahajjud); Narrated `Abdullah bin `Amr bin Al-`As. Grade: Sahih (Sahih al-Bukhari).
How to pray Tahajjud
- Sleep first, even a little, then wake up and make wudu. See our wudu guide.
- Make the intention for the night prayer.
- Pray two rak'ahs at a time, in the same way as the normal prayer. See the Salah guide.
- Recite as much Quran as you can with calm and reflection, and make longer sujud with dua.
- Close the night with Witr.
صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى، فَإِذَا خَشِيَ أَحَدُكُمُ الصُّبْحَ صَلَّى رَكْعَةً وَاحِدَةً، تُوتِرُ لَهُ مَا قَدْ صَلَّى
Meaning: The night prayer is offered as two rak'ahs at a time, and if one fears the coming of dawn, he should pray one rak'ah that makes all he has prayed an odd number.
Reference: Sahih al-Bukhari 990 — Witr Prayer; Narrated Ibn `Umar. Grade: Sahih (Sahih al-Bukhari).
Witr
Witr is a single odd-numbered prayer after Isha. The Prophet ﷺ ordered that it be the last prayer of the night.
اجْعَلُوا آخِرَ صَلاَتِكُمْ بِاللَّيْلِ وِتْرًا
Meaning: Make Witr the last of your prayers at night.
Reference: Sahih al-Bukhari 998 — Witr Prayer; Narrated `Abdullah bin `Umar. Grade: Sahih (Sahih al-Bukhari).
Most scholars say Witr is a confirmed Sunnah. Some, such as the Hanafi school, say it is wajib. You can pray Witr as one rak'ah, or three or more rak'ahs, always as an odd number.
Tips for keeping the habit
- Sleep early so that waking up is easier.
- Start small, even two rak'ahs, and be consistent.
- Keep a short list of duas to make in sujud.
- If you miss it, return the next night.
Frequently asked questions
Do I have to sleep before Tahajjud?
Tahajjud means praying after waking from sleep. Praying the night prayer before sleeping is still good, but it is not called Tahajjud by many scholars.
How many rak'ahs is Tahajjud?
There is no fixed number. Pray two by two, as in the hadith above, and finish with Witr.
Can women and travellers pray Tahajjud?
Yes. It is recommended for every Muslim.