Skip to content
How-To Guide8 min read

Tahajjud: How and When to Pray the Night Prayer

A warm, practical guide to tahajjud — when to pray the night prayer, how many rak'ah, why the last third of the night is special, and how to gently wake for it.

A single small brass oil lamp burning with a warm gold flame on a dark stone windowsill deep in the night, a vast scatter of faint gold stars across the deep navy sky beyond and a thin gold crescent low near the horizon, the lamp glow pooling softly on the sill.

There is an hour, somewhere in the dark, when the house has gone completely still. The phones have stopped lighting up, the street outside is quiet, and everyone you love is asleep. If you wake in that hour and rise to pray, you discover something the daytime rarely offers: a prayer with no audience at all. No one is watching, no one is waiting, nothing is owed in that moment to anyone but Allah (SWT). It is just you, a few rak'ah, and the One who is awake while the world sleeps.

This is tahajjud — the night prayer, also called qiyam al-layl, the standing of the night. It is not obligatory, and that is part of its sweetness: every unit of it is a gift freely given, asked of you by no one. This guide is about how to pray it and when, what the most blessed portion of the night is, how many rak'ah you actually need — and, just as importantly, how to gently arrange your life so that you can wake for it without it feeling like a punishment.

The night prayer is not a test of how impressive you can be. It is an invitation to be alone with your Lord while the world sleeps — and two sincere rak'ah accept that invitation just as fully as twenty.

The Quiet Honour of the Night Prayer

The Qur'an singles out the night prayer in a way it singles out few voluntary acts. Addressing the Prophet ﷺ, Allah (SWT) says: "And from the night, pray with it as additional worship for you; it is hoped that your Lord will raise you to a praised station" (Surah Al-Isra 17:79). The phrase rendered "a praised station" — maqaman mahmudan — points to a place of honour, and the verse ties it directly to rising in the night to pray. The night prayer, the verse suggests, lifts a person somewhere the daytime cannot reach.

The Sunnah echoes this. It is reported in Sahih Muslim that the Prophet ﷺ said the best prayer after the prescribed obligatory prayers is the prayer of the night. Sit with that ordering for a moment: after the five daily prayers — which are the heart of a Muslim's worship — the very next thing in excellence is not a famous sunnah of the day, but these quiet rak'ah offered when no one is looking. The night prayer is where many of the righteous before us did their most private, most honest standing before Allah (SWT).

You do not need to carry the whole tradition of the night-worshippers on your shoulders to begin. You need only understand that what you are reaching for is genuinely precious — and then reach for a small, keepable piece of it.

When to Pray Tahajjud

The window for the night prayer opens after you have prayed Isha and closes at the entrance of Fajr. Anywhere inside that stretch, your night prayer is valid and rewarded. There is no single "correct" clock time; there is a window, and any honest standing within it counts.

That said, the night is not uniform in virtue. The most blessed portion is the last third — the hours just before dawn. The reason is one of the most moving narrations in the Sunnah. It is established in both Sahih al-Bukhari and Sahih Muslim that the Prophet ﷺ said our Lord descends each night to the lowest heaven when the last third of the night remains, saying: "Who is calling upon 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?" — in a manner befitting His majesty. To rise in that last third, then, is to stand and ask at the very hour the door is described as most open.

Here is the practical version of all that, without the pressure:

  • Any time after Isha is valid. If you know you will not wake later, you can pray a few rak'ah before bed and they are written for you.
  • The last third is best, but it is not a requirement. If you can wake for it, beautiful. If your body simply will not, the earlier night still counts.
  • You don't have to calculate it to the minute. Roughly, split the time between Isha and Fajr into three; the final stretch before dawn is the prized one. An accurate prayer-time tool can show you when Fajr enters so you know where that last third falls.

The word tahajjud itself carries the sense of rising after sleep — which is why many people aim to sleep first and then wake for it. But do not let that detail become a barrier. The reward of standing in the night is not withheld from someone who simply cannot trust themselves to wake.

How Many Rak'ah Is Tahajjud, and How to Pray It

The mechanics are gentler than most people expect. There is no special new way of praying to learn — the night prayer is ordinary salah, offered the way you already know, with the same recitation, ruku', and sujud. What is distinctive is only the rhythm and the count.

It is prayed in pairs of two. It is reported in Sahih al-Bukhari and Sahih Muslim that the Prophet ﷺ said the prayer of the night is two by two — meaning you pray two rak'ah, give the closing salam, and then, if you wish, stand again for another two. You keep going in twos for as long as your heart and your body allow.

There is no obligatory maximum. You are not required to reach a particular number, and you are not falling short by praying few. A'ishah (may Allah be pleased with her) described the Prophet's ﷺ own habitual night prayer as not exceeding eleven rak'ah, whether in Ramadan or outside it (Sahih al-Bukhari, Sahih Muslim) — a beautiful pattern to aspire to over time, but his settled practice, not a binding limit placed on you.

It is usually sealed with witr. The night prayer is customarily capped with witr — an odd number of rak'ah, often just one — prayed as the final prayer of your night. The same narration that gives us "two by two" continues that when one fears dawn is near, he prays a single rak'ah to make all that came before odd. If you already pray witr after Isha and then wake for tahajjud, you do not repeat witr; your earlier witr stands, and you simply pray your night prayer in pairs.

A simple way to begin

If you have never prayed tahajjud, start here, tonight or whenever you next wake:

  1. Make your intention (niyyah) quietly in the heart — no spoken formula is needed. You intend the night prayer for the sake of Allah (SWT).
  2. Pray two rak'ah exactly as you pray any other prayer.
  3. Give salam. If your heart wants more, stand for another two. If it does not, stop — without guilt.
  4. If you have not yet prayed witr that night, close with witr (a single rak'ah is enough).

That is a complete, valid night prayer. Two rak'ah, sincerely offered in the dark, is not a consolation prize. It is the thing itself.

How to Actually Wake for It

The honest obstacle is rarely the prayer — it is the waking. This is where most good intentions quietly dissolve, and where a little planning does more than a lot of resolve. The same gentle system that helps people pray Fajr on time is exactly what makes tahajjud reachable, so it is worth reading our full guide on how to wake up for Fajr. In short:

  • Sleep early. You cannot out-discipline a 2 a.m. bedtime. Protect the hour after Isha from the scroll, and the night opens up.
  • Set the intention before sleep. Resolving, as you close your eyes, to rise and pray quietly shapes how you respond when the alarm sounds. And ask Allah (SWT) directly to wake you — the one who asks Him for help in obeying Him is not left to manage alone.
  • Consider a short nap earlier if your day allows it, so the missing sleep is less brutal.
  • Use a gentle, well-aimed alarm. A fixed phone alarm drifts out of sync with the shifting night, and a jarring one wakes the household. This is one place a purpose-built tool helps: Deeny's waking system can be set to fire a little before Fajr — leaving you time for a few rak'ah of tahajjud and Suhur — while making sure it never lands after the window has closed. It runs entirely on your device, so nothing about your nights leaves your phone.

And then the most freeing principle of all: two sincere rak'ah you can sustain are worth far more than an ambitious plan that collapses by Thursday. People set out to pray eight rak'ah in the last third of every night, manage it twice, exhaust themselves, and quietly give the whole thing up. The one who prays two rak'ah twice a week, and keeps doing it for a year, has prayed far more — and built something real. Let your night prayer be small enough to survive your tired weeks.

Tahajjud is one of the most beloved of the voluntary prayers, but it is part of a wider family of them; if you would like to see where it sits among the rest, our guide to the sunnah and nafl prayers maps the others worth knowing.

Frequently Asked Questions

What time is tahajjud?

Any time after you have prayed Isha and before Fajr enters. The whole of that window is valid, but the most blessed portion is the last third of the night — the hours just before dawn — because of the authentic narration that Allah (SWT) descends to the lowest heaven then. If you can wake for that last third, aim for it; if not, the earlier night still counts.

How many rak'ah is tahajjud?

It is prayed in pairs of two, with no obligatory maximum — you can pray just two rak'ah, or continue in twos for as long as you wish, typically sealing the night with an odd-numbered witr. The Prophet's ﷺ own habitual practice did not exceed eleven rak'ah, a lovely pattern to grow toward, but you are not falling short by praying fewer.

Do I have to sleep first?

The word tahajjud carries the sense of rising after sleep, so the classic picture is to sleep, then wake and pray. But if you fear you will not wake, praying a few rak'ah of night prayer before bed is still valid and rewarded — it is counted as qiyam al-layl. Do not let the detail of "sleeping first" stop you from praying at all.

What do I recite in tahajjud?

There is no fixed surah for the night prayer. You recite Al-Fatihah followed by any portion of the Qur'an you have memorised — even short surahs are perfectly fine. Lengthening the recitation and the standing is from the Sunnah if you are able, and the prostration is a beautiful place to make personal du'a in your own words, asking Allah (SWT) for whatever weighs on your heart.


The night prayer asks very little of you and offers a great deal. You do not need a heroic plan, a long surah memorised, or an unbroken record — you need only to wake one night, make a quiet intention, and offer two honest rak'ah in the stillness. Begin there. Let it be small, let it be sustainable, and let yourself return to it gently, night after night, knowing that the One you are standing for is awake, and listening, and near.

TahajjudNight PrayerQiyam al-LaylVoluntary PrayerSpiritual Growth

Keep reading