Free tool

How to pray tahajjud, step by step

From waking up to the dua before Fajr: every step of the night prayer, with the dua the Prophet ﷺ said for tahajjud in Arabic, transliteration and English.

Time
After Isha until Fajr
Best time
The last third of the night. Tonight's time
Rakahs
2 or more, in pairs. The Prophet ﷺ usually prayed 8, then witr
Ruling
Sunnah, one of the most rewarded voluntary prayers

The method shown first is the Hanafi one. Where the other madhhabs differ, the guide below explains how. Use the arrow keys to move between steps.

Guide

Tahajjud, the prayer of the night

To pray tahajjud, sleep after Isha, wake in the night, make wudu and pray at least two rakahs, then more in pairs if you can, and end with witr. The best time is the last third of the night, before Fajr. Allah told the Prophet ﷺ:

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

Wa minal laili fatahajjad bihee naafilatal laka 'asaaa any yab'asaka Rabbuka Maqaamam Mahmoodaa

And from [part of] the night, pray with it as additional [worship] for you; it is expected that your Lord will resurrect you to a praised station.

Quran 17:79 (Surah Al-Isra), translation by Sahih International.

The dua for tahajjud

Ibn Abbas reported that when the Prophet ﷺ got up at night for tahajjud he said this dua. It is the one most people mean by "the tahajjud dua".

اللَّهُمَّ لَكَ الْحَمْدُ أَنْتَ قَيِّمُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ لَكَ مُلْكُ السَّمَوَاتِ وَالأَرْضِ وَمَنْ فِيهِنَّ، وَلَكَ الْحَمْدُ أَنْتَ نُورُ السَّمَوَاتِ وَالأَرْضِ، وَلَكَ الْحَمْدُ أَنْتَ الْحَقُّ، وَوَعْدُكَ الْحَقُّ، وَلِقَاؤُكَ حَقٌّ، وَقَوْلُكَ حَقٌّ، وَالْجَنَّةُ حَقٌّ، وَالنَّارُ حَقٌّ، وَالنَّبِيُّونَ حَقٌّ، وَمُحَمَّدٌ ﷺ حَقٌّ، وَالسَّاعَةُ حَقٌّ، اللَّهُمَّ لَكَ أَسْلَمْتُ، وَبِكَ آمَنْتُ، وَعَلَيْكَ تَوَكَّلْتُ، وَإِلَيْكَ أَنَبْتُ، وَبِكَ خَاصَمْتُ، وَإِلَيْكَ حَاكَمْتُ، فَاغْفِرْ لِي مَا قَدَّمْتُ وَمَا أَخَّرْتُ، وَمَا أَسْرَرْتُ وَمَا أَعْلَنْتُ، أَنْتَ الْمُقَدِّمُ وَأَنْتَ الْمُؤَخِّرُ، لاَ إِلَهَ إِلاَّ أَنْتَ

Allāhumma lakal-ḥamdu anta qayyimus-samāwāti wal-arḍi wa man fīhinn, wa lakal-ḥamdu laka mulkus-samāwāti wal-arḍi wa man fīhinn, wa lakal-ḥamdu anta nūrus-samāwāti wal-arḍ, wa lakal-ḥamdu antal-ḥaqq, wa waʿdukal-ḥaqq, wa liqāʾuka ḥaqq, wa qawluka ḥaqq, wal-jannatu ḥaqq, wan-nāru ḥaqq, wan-nabiyyūna ḥaqq, wa Muḥammadun ṣallallāhu ʿalayhi wa sallama ḥaqq, was-sāʿatu ḥaqq. Allāhumma laka aslamtu, wa bika āmantu, wa ʿalayka tawakkaltu, wa ilayka anabtu, wa bika khāṣamtu, wa ilayka ḥākamtu, faghfir lī mā qaddamtu wa mā akhkhartu, wa mā asrartu wa mā aʿlantu, antal-muqaddimu wa antal-muʾakhkhiru, lā ilāha illā ant

O Allah, to You belongs all praise. You are the Sustainer of the heavens and the earth and all who are in them. To You belongs all praise. Yours is the dominion of the heavens and the earth and all who are in them. To You belongs all praise. You are the Light of the heavens and the earth. To You belongs all praise. You are the Truth, Your promise is true, the meeting with You is true, Your word is true, Paradise is true, the Fire is true, the prophets are true, Muhammad ﷺ is true, and the Hour is true. O Allah, to You I submit, in You I believe, in You I put my trust, to You I turn, by You I argue, and to You I bring my case. So forgive me what I have done before and after, what I have kept hidden and what I have done openly. You are the One who brings forward and the One who puts back. There is no god but You.

Sahih al-Bukhari 1120, from Ibn Abbas: the Prophet ﷺ said this when he got up at night for tahajjud. Also in Sahih Muslim.

After the prayer, make any dua you like, in your own language. The hadith of the Lord's descent in the last third of the night is a promise of an answer.1

How many rakats is tahajjud?

There is no fixed number. The least is two rakahs. Aishah said the Prophet ﷺ did not pray more than eleven rakahs at night, in Ramadan or outside it, which was eight rakahs of night prayer and three of witr.2 Pray what you can keep up: two rakahs every night are better than twelve once a month.

Tahajjud and witr

Hanafi position

Tahajjud is a sunnah. Witr is wajib and is three rakahs with one salam. If you trust yourself to wake, delay witr until after tahajjud, as the last prayer of the night. If you are not sure, pray witr after Isha and pray tahajjud later in pairs without repeating witr. Abu Hanifa held that four rakahs with one salam are best for night prayer, and the two companions, Abu Yusuf and Muhammad, held that two at a time are best.3

Other madhhabs
Shafi'i
Tahajjud is a confirmed sunnah, prayed in twos. Witr is a confirmed sunnah, from one to eleven rakahs, and is usually prayed as two rakahs then one.
Maliki
Night prayer is in pairs, and witr is a single rakah after them. Witr is a confirmed sunnah.
Hanbali
Night prayer is in pairs with a salam after every two. Witr is a confirmed sunnah, one to eleven rakahs.

Can you pray tahajjud without sleeping?

Many scholars say tahajjud proper is prayer after sleeping, because the word comes from leaving sleep. Prayer after Isha without sleeping is still qiyam al-layl, the night prayer, and is rewarded. If you cannot wake, pray two or four rakahs before you sleep and witr after them.

Tips for waking up

  • Sleep early and make wudu before bed.
  • Set an alarm for the last third: the tahajjud time tool works it out for your location and can add a 30-night alarm to your calendar.
  • Start with two rakahs once or twice a week.
  • If you wake close to Fajr, pray two quick rakahs rather than none.

Tahajjud time in your city

  1. Sahih al-Bukhari 1145; Sahih Muslim 758.
  2. Sahih al-Bukhari 1147; Sahih Muslim 738.
  3. Ibn Abidin, Radd al-Muhtar, Bab al-Witr wa al-Nawafil; al-Marghinani, al-Hidayah. The other madhhabs' positions are summarised from their standard manuals.

The rulings on this page are pending review by the scholars on our team.

Questions

Good to know

How do I pray tahajjud step by step?

Sleep after Isha, wake in the night, make wudu, and pray two rakahs like any sunnah prayer. Pray more in pairs if you can, then witr if you have not prayed it. Make dua before Fajr.

What is the dua for tahajjud?

Allahumma lakal-hamdu anta qayyimus-samawati wal-ard... from Sahih al-Bukhari 1120. The Prophet ﷺ said it when he got up at night for tahajjud. The full Arabic, transliteration and meaning are on this page.

How many rakats is tahajjud?

At least two. The Prophet ﷺ usually prayed eight rakahs, then three rakahs of witr, eleven in all.

What time should I wake up for tahajjud?

Any time after Isha until Fajr counts, but the best is the last third of the night. The tahajjud time tool shows when it begins tonight where you live.

Do I have to pray witr after tahajjud?

Pray witr once a night. If you already prayed it after Isha, do not pray it again after tahajjud. If you have not, make it your last prayer before Fajr.

Can I pray tahajjud without sleeping first?

Prayer at night after Isha is rewarded either way. Many scholars say the name tahajjud is for prayer after sleep, so sleeping first is better if you can.