Guide · Night prayer

Tahajjud: the prayer of the last part of the night

To pray Tahajjud, wake after some sleep, make wudu, and pray two rak'ahs at a time, then close with Witr. Its time runs from after Isha until Fajr, and the best part is the last third of the night. The Prophet ﷺ usually prayed eleven rak'ahs at night, sometimes thirteen, but there is no fixed minimum: two rak'ahs are a start.

Last checked

Aqdam records; it doesn't rule. Scholars of different schools differ on some details here, so ask a scholar you trust.

What is Tahajjud?

Tahajjud is a voluntary prayer offered in the night, after Isha and before Fajr. The Quran addresses the Prophet ﷺ about it directly, calling it a gift, an extra, beyond the five obligatory prayers.

The Prophet ﷺ said that the most excellent prayer after the obligatory ones is prayer during the night. It is not obligatory, so missing a night is not a sin; it is a practice you keep as you are able.

Quran 17:79Quran
Arabic text

وَمِنَ ٱلَّيْلِ فَتَهَجَّدْ بِهِۦ نَافِلَةً لَّكَ عَسَىٰٓ أَن يَبْعَثَكَ رَبُّكَ مَقَامًا مَّحْمُودًا

“And some part of the night awake for it, a largess for thee. It may be that thy Lord will raise thee to a praised estate”

Surah Al-Israa

Sahih Muslim 1163aSahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " أَفْضَلُ الصِّيَامِ بَعْدَ رَمَضَانَ شَهْرُ اللَّهِ الْمُحَرَّمُ وَأَفْضَلُ الصَّلاَةِ بَعْدَ الْفَرِيضَةِ صَلاَةُ اللَّيْلِ".

“the most excellent prayer after what is prescribed is prayer during the night”

Grade: Sahih

When is the time for Tahajjud?

Any time after Isha until Fajr is night prayer, but the last third of the night is best. The Prophet ﷺ said that Allah descends to the nearest heaven when the last third of the night remains and asks: who is calling on Me, that I may answer? Who is asking, that I may give? Who seeks forgiveness, that I may forgive?

Aisha described his habit: he slept early, rose in the last part of the night to pray, then returned to bed until the adhan for Fajr.

To find the last third, many scholars count the night from Maghrib to Fajr. Take the time between them, divide by three, and subtract one third from Fajr. Your local prayer times give you both numbers.

Working out the last third of the night (examples, arithmetic only)
MaghribFajrLength of nightLast third begins
16:3006:3014 hours01:50
18:0005:0011 hours01:20
21:0003:006 hours01:00
Sahih al-Bukhari 1145Sahih
Arabic text

أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " يَنْزِلُ رَبُّنَا تَبَارَكَ وَتَعَالَى كُلَّ لَيْلَةٍ إِلَى السَّمَاءِ الدُّنْيَا حِينَ يَبْقَى ثُلُثُ اللَّيْلِ الآخِرُ يَقُولُ مَنْ يَدْعُونِي فَأَسْتَجِيبَ لَهُ مَنْ يَسْأَلُنِي فَأُعْطِيَهُ مَنْ يَسْتَغْفِرُنِي فَأَغْفِرَ لَهُ".

“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?”

Grade: Sahih

Sahih al-Bukhari 1146Sahih
Arabic text

قَالَ سَأَلْتُ عَائِشَةَ ـ رضى الله عنها ـ كَيْفَ صَلاَةُ النَّبِيِّ صلى الله عليه وسلم بِاللَّيْلِ قَالَتْ كَانَ يَنَامُ أَوَّلَهُ وَيَقُومُ آخِرَهُ، فَيُصَلِّي ثُمَّ يَرْجِعُ إِلَى فِرَاشِهِ، فَإِذَا أَذَّنَ الْمُؤَذِّنُ وَثَبَ، فَإِنْ كَانَ بِهِ حَاجَةٌ اغْتَسَلَ، وَإِلاَّ تَوَضَّأَ وَخَرَجَ.

“He used to sleep early at night, and get up in its last part to pray, and then return to his bed”

Grade: Sahih

How many rak'ahs is Tahajjud?

There is no fixed number. The Prophet ﷺ described night prayer as two rak'ahs followed by two, and so on, closed with a single rak'ah of Witr when dawn is near.

His own practice: Aisha said he did not go beyond eleven rak'ahs, in Ramadan or other months, praying four, then four, then three, each of great length and beauty. Ibn Abbas reported thirteen rak'ahs. He also taught to begin the night prayer with two short rak'ahs.

So two rak'ahs is a start, and eight followed by Witr follows his usual count. Long recitation in a few rak'ahs is as much a part of his way as the number.

Sahih al-Bukhari 990Sahih
Arabic text

أَنَّ رَجُلاً، سَأَلَ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنْ صَلاَةِ اللَّيْلِ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " صَلاَةُ اللَّيْلِ مَثْنَى مَثْنَى، فَإِذَا خَشِيَ أَحَدُكُمُ الصُّبْحَ صَلَّى رَكْعَةً وَاحِدَةً، تُوتِرُ لَهُ مَا قَدْ صَلَّى".

“The night prayer is offered as two Rak`at followed by two Rak`at and so on and if anyone is afraid of the approaching dawn (Fajr prayer) he should pray one Rak`ah and this will be a Witr for all the Rak`at which he has prayed before”

Grade: Sahih

Sahih al-Bukhari 1147Sahih
Arabic text

… الله عليه وسلم فِي رَمَضَانَ فَقَالَتْ مَا كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يَزِيدُ فِي رَمَضَانَ وَلاَ فِي غَيْرِهِ عَلَى إِحْدَى عَشْرَةَ رَكْعَةً، يُصَلِّي أَرْبَعًا فَلاَ تَسَلْ عَنْ حُسْنِهِنَّ وَطُولِهِنَّ، ثُمَّ يُصَلِّي أَرْبَعًا فَلاَ تَسَلْ عَنْ حُسْنِهِنَّ وَطُولِهِنَّ، ثُمَّ يُصَلِّي ثَلاَثًا، قَالَتْ عَائِشَةُ فَقُلْتُ يَا رَسُولَ اللَّهِ أَتَنَامُ قَبْلَ أَنْ تُوتِرَ. …

“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”

Grade: Sahih

Sahih al-Bukhari 1138Sahih
Arabic text

قَالَ كَانَ صَلاَةُ النَّبِيِّ صلى الله عليه وسلم ثَلاَثَ عَشْرَةَ رَكْعَةً. يَعْنِي بِاللَّيْلِ.

“The prayer of the Prophet (ﷺ) used to be of thirteen rak`at, i.e. of the night prayer”

Grade: Sahih

Sahih Muslim 768Sahih
Arabic text

وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ هِشَامٍ، عَنْ مُحَمَّدٍ، عَنْ أَبِي، هُرَيْرَةَ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ" إِذَا قَامَ أَحَدُكُمْ مِنَ اللَّيْلِ فَلْيَفْتَتِحْ صَلاَتَهُ بِرَكْعَتَيْنِ خَفِيفَتَيْنِ

“When any one of you gets up at night, he should begin the prayer with two short rak'ahs”

Grade: Sahih

How to pray Tahajjud, step by step

  1. Before you sleep, set an alarm for the last third of the night (or whenever you can wake).
  2. When you wake, make wudu. Your intention is in your heart; there is no set wording to say aloud.
  3. Begin with two short rak'ahs, prayed like any two-rak'ah prayer: Al-Fatihah and some Quran, ruku', sujud, tashahhud and salam.
  4. Continue in sets of two for as long as you wish. Recite what you know; lengthen it as you grow used to it.
  5. Make du'a: this is the time when Allah asks who is calling on Him.
  6. Close the night with Witr, one rak'ah or more, unless you already prayed it before sleeping. See the Witr guide.
Sahih Muslim 768Sahih
Arabic text

وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا أَبُو أُسَامَةَ، عَنْ هِشَامٍ، عَنْ مُحَمَّدٍ، عَنْ أَبِي، هُرَيْرَةَ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ" إِذَا قَامَ أَحَدُكُمْ مِنَ اللَّيْلِ فَلْيَفْتَتِحْ صَلاَتَهُ بِرَكْعَتَيْنِ خَفِيفَتَيْنِ

“When any one of you gets up at night, he should begin the prayer with two short rak'ahs”

Grade: Sahih

Sahih al-Bukhari 998Sahih
Arabic text

قَالَ " اجْعَلُوا آخِرَ صَلاَتِكُمْ بِاللَّيْلِ وِتْرًا".

“Make witr as your last prayer at night”

Grade: Sahih

Can you pray Tahajjud without sleeping?

The Prophet's ﷺ usual way was to sleep first and then rise to pray. Many scholars say the word tahajjud itself means prayer after waking from sleep, so a prayer before sleeping is night prayer (Qiyam al-Layl) but not Tahajjud in the strict sense. Others use the two names for the same thing and count any voluntary prayer between Isha and Fajr.

Either way, praying at night before you sleep is still night prayer. The Prophet ﷺ advised that anyone who fears not waking should pray Witr in the first part of the night, and anyone confident of waking should pray it at the end. If you want to know which applies to you, ask a scholar you trust.

Sahih al-Bukhari 1146Sahih
Arabic text

قَالَ سَأَلْتُ عَائِشَةَ ـ رضى الله عنها ـ كَيْفَ صَلاَةُ النَّبِيِّ صلى الله عليه وسلم بِاللَّيْلِ قَالَتْ كَانَ يَنَامُ أَوَّلَهُ وَيَقُومُ آخِرَهُ، فَيُصَلِّي ثُمَّ يَرْجِعُ إِلَى فِرَاشِهِ، فَإِذَا أَذَّنَ الْمُؤَذِّنُ وَثَبَ، فَإِنْ كَانَ بِهِ حَاجَةٌ اغْتَسَلَ، وَإِلاَّ تَوَضَّأَ وَخَرَجَ.

“He used to sleep early at night, and get up in its last part to pray”

Grade: Sahih

Sahih Muslim 755aSahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ خَافَ أَنْ لاَ يَقُومَ مِنْ آخِرِ اللَّيْلِ فَلْيُوتِرْ أَوَّلَهُ وَمَنْ طَمِعَ أَنْ يَقُومَ آخِرَهُ فَلْيُوتِرْ آخِرَ اللَّيْلِ فَإِنَّ صَلاَةَ آخِرِ اللَّيْلِ مَشْهُودَةٌ وَذَلِكَ أَفْضَلُ". وَقَالَ أَبُو مُعَاوِيَةَ مَحْضُورَةٌ.

“If anyone is afraid that he may not get up in the latter part of the night, he should observe Witr in the first part of it; and if anyone is eager to get up in the last part of it, he should observe Witr at the end of the night, for prayer at the end of the night is witnessed (by the angels) and that is preferable”

Grade: Sahih

Du'a for Tahajjud

When the Prophet ﷺ got up at night for Tahajjud, he would say: Allahumma lakal-hamd, anta qayyimus-samawati wal-ardi wa man fihinn (O Allah, all praise is Yours; You are the Sustainer of the heavens and the earth and all that is in them), continuing with praise and ending with a request for forgiveness. The full du'a is in the source below.

Aisha reported that he would also open his night prayer with: O Allah, Lord of Gabriel, Michael and Israfil, Creator of the heavens and the earth, Knower of the unseen and the seen, asking to be guided to the truth.

On waking, he taught a short dhikr: La ilaha illallahu wahdahu la sharika lah..., then Allahumma ighfir li. The waking and sleeping du'as collect more.

Sahih al-Bukhari 1120Sahih
Arabic text

قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا قَامَ مِنَ اللَّيْلِ يَتَهَجَّدُ قَالَ" اللَّهُمَّ لَكَ الْحَمْدُ أَنْتَ قَيِّمُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ وَلَكَ الْحَمْدُ، لَكَ مُلْكُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ أَنْتَ نُورُ السَّمَوَاتِ وَالأَرْضِ، وَلَكَ الْحَمْدُ أَنْتَ الْحَقُّ، وَوَعْدُكَ الْحَقُّ، وَلِقَاؤُكَ حَقٌّ، وَقَوْلُكَ حَقٌّ، …

“When the Prophet (ﷺ) got up at night to offer the Tahajjud prayer, he used to say: Allahumma lakal-hamd. Anta qaiyyimus-samawati wal-ard wa man fihinna... (O Allah! All the praises are for you, You are the Holder of the Heavens and the Earth, And whatever is in them”

Grade: Sahih

Sahih Muslim 770Sahih
Arabic text

… بِأَىِّ شَىْءٍ كَانَ نَبِيُّ اللَّهِ صلى الله عليه وسلم يَفْتَتِحُ صَلاَتَهُ إِذَا قَامَ مِنَ اللَّيْلِ قَالَتْ كَانَ إِذَا قَامَ مِنَ اللَّيْلِ افْتَتَحَ صَلاَتَهُ " اللَّهُمَّ رَبَّ جِبْرَائِيلَ وَمِيكَائِيلَ وَإِسْرَافِيلَ فَاطِرَ السَّمَوَاتِ وَالأَرْضِ عَالِمَ الْغَيْبِ وَالشَّهَادَةِ أَنْتَ تَحْكُمُ بَيْنَ عِبَادِكَ فِيمَا كَانُوا فِيهِ يَخْتَلِفُونَ اهْدِنِي لِمَا اخْتُلِفَ فِيهِ …

“When he got up at night he would commence his prayer with these words: O Allah, Lord of Gabriel, and Michael, and Israfil, the Creator of the heavens and the earth, Who knowest the unseen and the seen”

Grade: Sahih

Sahih al-Bukhari 1154Sahih
Arabic text

قَالَ " مَنْ تَعَارَّ مِنَ اللَّيْلِ فَقَالَ لاَ إِلَهَ إِلاَّ اللَّهُ وَحْدَهُ لاَ شَرِيكَ لَهُ، لَهُ الْمُلْكُ، وَلَهُ الْحَمْدُ، وَهُوَ عَلَى كُلِّ شَىْءٍ قَدِيرٌ. الْحَمْدُ لِلَّهِ، وَسُبْحَانَ اللَّهِ، وَلاَ إِلَهَ إِلاَّ اللَّهُ، وَاللَّهُ أَكْبَرُ، وَلاَ حَوْلَ وَلاَ قُوَّةَ إِلاَّ بِاللَّهِ. ثُمَّ قَالَ اللَّهُمَّ اغْفِرْ لِي. أَوْ دَعَا اسْتُجِيبَ، فَإِنْ تَوَضَّأَ وَصَلَّى قُبِلَتْ …

“Whoever gets up at night and says: -- 'La ilaha il-lallah Wahdahu la Sharika lahu Lahu-lmulk, waLahu-l-hamd wahuwa 'ala kullishai'in Qadir”

Grade: Sahih

Questions people ask

What time is Tahajjud?

From after Isha until Fajr, with the last third of the night the best part. Count the hours from Maghrib to Fajr, divide by three, and the last third starts that long before Fajr.

How many rak'ahs is Tahajjud?

There is no fixed number; it is prayed two at a time. The Prophet ﷺ usually prayed eleven including Witr, sometimes thirteen.

Can I pray Tahajjud without sleeping?

Scholars differ on whether a prayer before sleeping is called Tahajjud or simply night prayer (Qiyam al-Layl). Either way it is night prayer; ask a scholar you trust about the name and the details.

Is Tahajjud the same as Qiyam al-Layl?

Qiyam al-Layl is any voluntary prayer at night. Many scholars keep the name Tahajjud for night prayer after sleeping; others use the two names interchangeably.

What du'a did the Prophet ﷺ say for Tahajjud?

When he rose for Tahajjud he began with Allahumma lakal-hamd, anta qayyimus-samawati wal-ard, a du'a of praise ending with a request for forgiveness, recorded in Sahih al-Bukhari.

Keep going

Add Tahajjud as a habit in Aqdam, and use its prayer times to find the last third of your night.

Download on the App StoreGet it on Google Play

Every hadith and verse on this page links to its source. Spot a mistake? Let us know.