Tahajjud and Witr

Witr is the odd-numbered prayer that seals the night — so which side of Tahajjud does it belong on? The Prophet's ﷺ instruction is clear, and so is the answer for the common tangle: Witr already prayed, then waking anyway. First, know your window — tonight's tahajjud calculator shows both its start and its Fajr deadline.

A crescent moon with a single bright star, representing Witr, the odd-numbered closing prayer of the night

"Make Witr the last of your prayer at night"

The instruction is the Prophet's ﷺ own: "Make Witr the last of your prayer at night" (Sahih al-Bukhari 998; Sahih Muslim 751). The default architecture of the night follows from it: Isha, sleep, Tahajjud in pairs, and Witr as the final, odd seal before Fajr. If you habitually wake for the last third, delay Witr and let it close your Tahajjud — this is the pattern the hadith builds, and the one our step-by-step guide assumes.

If you already prayed Witr after Isha

The other hadith guards this case: "There are no two Witrs in one night" (Sunan al-Tirmidhi 470). So you wake in the last third, pleasantly surprised — pray your Tahajjud pairs freely, and leave the Witr you already prayed exactly where it stands. It remains the night's Witr even though prayer came after it; the majority of scholars hold this, and the night loses nothing. What you should not do is skip Tahajjud out of ordering anxiety, or stack a second Witr on top of the first.

If you fear you will not wake

Then the same Prophet ﷺ who said "make it last" also advised the one who fears not rising to pray Witr before sleeping — insurance beats absence. This is the honest calculus of the whole night prayer: a Witr prayed after Isha and a Tahajjud missed is a better night than a perfect plan that existed only in intention. As your waking becomes reliable — the habit guide helps it become so — shift Witr later and let it close the night.

Witr minimums and counts

Witr is any odd number: one, three, five, seven, nine rak'ahs are all reported from the Prophet ﷺ. Three is the common practice of most communities. One is fully valid — it is the form the "two by two" hadith itself prescribes when dawn is feared (Sahih al-Bukhari 990) — and it is the version that saves the night's seal when you wake with minutes to spare. The counts of Tahajjud it follows are set out in How Many Rak'ahs for Tahajjud?

Frequently asked questions

Should Witr come before or after Tahajjud?

After — if you expect to wake. The Prophet ﷺ instructed: "Make Witr the last of your prayer at night" (Sahih al-Bukhari 998; Sahih Muslim 751). Whoever plans to rise for Tahajjud delays Witr until after it; whoever fears sleeping through prays Witr after Isha first, as insurance.

I prayed Witr after Isha and then woke up. What now?

Pray Tahajjud in pairs, as many as you wish, and do not repeat Witr — the Prophet ﷺ said there are not two Witrs in one night (Sunan al-Tirmidhi 470). Your earlier Witr stands as the night's odd prayer even though Tahajjud came after it; this is the position of the majority of scholars.

Can Witr be just one rak'ah?

Yes. One rak'ah is a valid Witr — the Prophet ﷺ described the night prayer as two by two, ending with a single rak'ah to make it odd (Sahih al-Bukhari 990). Three rak'ahs is the most common practice, but one is the lifeline when Fajr is close.

What if I wake minutes before Fajr — Tahajjud or Witr?

If neither is prayed, scholars commonly prioritise a brief Tahajjud pair and a single Witr rak'ah if both fit, or Witr alone if only moments remain — the closing odd prayer before the deadline. Keep it swift and unhurried in heart; Fajr's entry ends the discussion either way.

Witr closes the night — so plan it against tonight's Fajr, not by guesswork.

Open the Wake-Up Planner

Related tools and guides