حَرْفHarf اردو

Home Guides How to pray tahajjud

Guide · Updated 9 November 2026

How to pray tahajjud

Tahajjud is voluntary prayer at night, after sleeping and before Fajr. It was the regular practice of the Prophet ﷺ, who prayed until his feet swelled, and it is the best prayer after the obligatory ones (Sahih Muslim 1163). Allah says: “And rise at night and pray, as an extra for you; perhaps your Lord will raise you to a praised station” (Al-Isra 17:79). Here is when and how to pray it.

The best time

Tahajjud can be prayed any time after Isha until Fajr, ideally after some sleep. The best time is the last third of the night: the Prophet ﷺ said that Allah descends to the lowest heaven then and says: “Who is calling on Me, that I may answer him? Who is asking of Me, that I may give him? Who is seeking My forgiveness, that I may forgive him?” (Sahih al-Bukhari 1145). The tahajjud time tool calculates the last third for your city.

How many rakats

There is no fixed number. The minimum is two rakats; many pray eight. ʿAishah said the Prophet ﷺ did not pray more than eleven rakats at night, in Ramadan or outside it (Sahih al-Bukhari 1147): usually eight of tahajjud and three of witr. Quality matters more than quantity: “The deeds most loved by Allah are the regular ones, even if few” (Sahih al-Bukhari 6464).

How to pray it

Make wudu and pray in sets of two rakats, each ending with the salam: “The night prayer is two by two” (Sahih al-Bukhari 990). The Prophet ﷺ would begin with two short rakats. Recite whatever you know; longer recitation, long ruku and long prostrations are the Sunnah. Recite aloud or quietly, as suits the people around you. The rakats are prayed like any two-rakat prayer.

Ending with witr

“Make witr the last of your prayer at night” (Sahih al-Bukhari 998). If you are confident of waking, delay witr until after tahajjud; if not, pray it after Isha before sleeping, and then pray tahajjud in twos without repeating witr. In the Hanafi school witr is three rakats with Dua Qunoot, and after it say subḥāna-l-maliki-l-quddūs.

Duas of the night

When the Prophet ﷺ rose for tahajjud he would say a long dua beginning اللّٰهُمَّ لَكَ الْحَمْدُ، أَنْتَ قَيِّمُ السَّمَاوَاتِ وَالْأَرْضِ وَمَنْ فِيهِنَّ: “O Allah, to You belongs all praise; You are the Sustainer of the heavens and the earth and all in them…” (Sahih al-Bukhari 1120). Then ask for whatever you need, in any language, especially in prostration. On waking, say the dua when waking up.

Tips to wake up

Sleep early, after Isha, and make the intention to wake: if you sleep intending tahajjud and miss it, you are still rewarded for the intention. Set an alarm 20 minutes before Fajr to start small. Sleep on your right side after the duas before sleeping. Avoid heavy food late at night. Wake your spouse: the Prophet ﷺ praised a man who wakes his wife for prayer and a woman who wakes her husband (Sunan Abi Dawud 1308).

If you miss it

If sleep or illness stops you, the Prophet ﷺ would pray twelve rakats during the day instead (Sahih Muslim 746), meaning in the forenoon (ḍuḥā). Do not give up after a missed night; begin again the next night with two rakats.

More guides

The Madinah Arabic books: how to study them for free

How the Madinah Arabic books (Durus al-Lughah al-Arabiyyah) work, where to get them free from the author’s institute, and how to study Book 1 online with free lessons in English and Urdu.

How to learn Quranic Arabic: a plan for beginners

A practical, free plan to understand the Arabic of the Quran: learn to read, learn the most common words and roots, learn basic grammar, then read surahs word by word.

MSA, Quranic Arabic or a dialect: which should you learn first?

The difference between Modern Standard Arabic (fusha), Quranic (classical) Arabic and spoken dialects such as Saudi or Egyptian, and which one to start with for your goals.

Learn Arabic for free: a 90-day plan

A free 90-day plan to learn Arabic from zero: the alphabet in 10 days, then grammar, vocabulary, reading and listening, 15–20 minutes a day, with no sign-up.

How many rakats are in each prayer?

How many rakats are in each of the five daily prayers: fard, sunnah and witr for Fajr, Dhuhr, Asr, Maghrib and Isha, plus Jumuah and travel, with the hadith behind each number.

What to say after salah

The short adhkar the Prophet ﷺ said after every fard prayer, in order: istighfar, Allahumma antas-salam, the tahlil, 33-33-33 tasbih, Ayat al-Kursi and the three Quls, with Arabic, meaning and hadith sources.

How to pray salah, step by step

How to pray salah step by step, from wudu and intention to the final salam, with every Arabic word, its meaning and the hadith behind it. Written for beginners and new Muslims.

How to perform wudu, step by step

How to make wudu step by step: the four fard acts, the Sunnah way the Prophet ﷺ did it, the duas before and after, what breaks wudu, and wiping over socks. Hanafi, with other views noted.

How to teach your kids the Quran at home

A practical, age-by-age plan for teaching children the Quran at home: the Arabic letters, Qaida, short surahs, daily routine, memorisation tips and keeping it joyful. With free printables.

How to read the Quran in Arabic as an adult beginner

A step-by-step path for adults and new Muslims to read the Quran in Arabic: letters, vowel marks, joining, tajweed basics, a daily plan, and how to start understanding what you read.

How to perform ghusl, step by step

How to do ghusl, the full Islamic bath: when it is required, the three fard acts, the Sunnah method the Prophet ﷺ followed, and answers for women, braids and showers.

How to pray the janazah (funeral) prayer

How to pray the Islamic funeral prayer: the four takbirs, what to recite after each, the duas for an adult and a child, where to stand, and the reward of attending.

How to pray istikhara, step by step

How to pray istikhara: the two rakats, the full dua in Arabic with meaning and pronunciation, where to name your decision, and what to expect afterwards. No dream is needed.

What breaks the fast, and what does not

What breaks the fast and what does not: eating by mistake, vomiting, toothbrush, eye and nose drops, injections, blood tests, periods, and who may skip a fast. Hanafi, with sources.

How to pray the Eid prayer

How to pray Salat al-Eid: the time, the two rakats with the extra takbirs (Hanafi), the khutbah, and the Sunnahs of Eid morning for Eid al-Fitr and Eid al-Adha.

How to perform Umrah, step by step

A complete step-by-step guide to Umrah: ihram and the miqat, the talbiyah, tawaf around the Kaʿbah, the two rakats, Zamzam, saʿi between Safa and Marwah, and shaving or trimming.

How to calculate zakat

A clear guide to zakat: who must pay, the nisab in gold and silver, the one-year rule, what wealth to count and deduct, 2.5% worked example, and the eight groups who can receive it.

Harf is free for everyone. If it helps you, a small tip keeps new lessons coming.

Support Harf