How to pray tahajjud: its time and number of rak'ahs
Last updated: 10 November 2026
Tahajjud is a voluntary prayer performed after sleeping for a while at night and then getting up. The Quran encourages night prayer in verse 79 of Surah Al-Isra, and the Prophet is known to have prayed tahajjud regularly. The information in this article follows the Hanafi school.
The time of tahajjud
Tahajjud is prayed after isha, after sleeping for a while and waking up, until imsak. The last third of the night is known as the most virtuous time for it. For tonight's isha and imsak times where you are, see the prayer times page.
Night prayer offered without sleeping first is also valid as a voluntary prayer, but the name "tahajjud" is used for prayer performed after rising from sleep.
How many rak'ahs is tahajjud?
Tahajjud has at least 2 and at most 8 rak'ahs. It is reported that the Prophet usually prayed 8 rak'ahs followed by witr. You may pray 2, 4, 6 or 8 rak'ahs according to your ability. Praying in sets of two rak'ahs is recommended.
How to pray tahajjud
- Intention: Intend "I intend, for the sake of Allah, to perform the tahajjud prayer."
- Pray it like any two-rak'ah sunnah prayer: recite Subhanaka, al-Fatiha and a surah; bow and prostrate.
- At the end of the second rak'ah, sit, recite At-tahiyyatu, Allahumma salli, Allahumma barik and Rabbana, and give salam.
- If you wish to pray more, continue in the same way in sets of two rak'ahs.
For how to pray step by step, see how to pray.
Witr and tahajjud
Someone sure of waking at night may leave witr until after tahajjud instead of praying it after isha. Someone who fears not waking should pray witr after isha. For how witr is prayed, see how to pray witr.
For those with missed prayers
Someone who owes make-up prayers may pray them instead of tahajjud when waking at night. A make-up prayer pays off an obligatory debt and comes before voluntary prayer. For make-up prayers, see Friday and make-up prayers.
Night prayer is also recommended on blessed nights, for example on Laylat al-Qadr and the holy nights. For a voluntary prayer during the day, see duha prayer; for a prayer offered for a need, see hajah prayer.
Sources
- Presidency of Religious Affairs of Türkiye (Diyanet), İlmihal I, chapter "Nafile Namazlar"
- Surah Al-Isra, verse 79; Surah Al-Muzzammil, verses 1–4
This guide is also available in Turkish.