Skip to content

Home › Guides › How to Pray Witr

How to Pray Witr: How Many Rakat, and When

By · Updated November 2026 · 6 min read

Witr is the odd-numbered prayer that closes your night — prayed any time after Isha and before Fajr. If you've wondered how to pray witr, how many rakat it is, or why your Hanafi friend prays it differently from your Shafi'i friend, this guide walks through the options without the confusion.

How do you pray witr with Isha? Pray the 4 fard rakat of Isha, then its 2 sunnah, then witr: 1 rakat on its own, or 3. In the Hanafi way the 3 are prayed together with one salam, with qunoot in the third rakat before ruku'. You can also save witr for later in the night, as long as you pray it before Fajr.

How many rakat is Isha? The obligatory part of Isha is 4 rakat. Most people add 2 sunnah after it and then witr (1 or 3). Totals you hear quoted, such as 17, also count optional prayers before and after.

What is witr?

Witr literally means "odd" — it is a night prayer of an odd number of rakat that makes the total of your night prayer uneven, because, as the Prophet ﷺ taught, Allah is witr (One) and loves what is odd (Sahih al-Bukhari 6410). It is prayed after the Isha prayer, and it is meant to be the final prayer of your night: "Make witr as your last prayer at night" (Sahih al-Bukhari 998). Every madhab treats it as a serious, near-daily commitment; where they differ is on its exact legal weight and form.

Witr prayer: how many rakat?

Any odd number: 1, 3, 5, 7, 9, or 11 rakat.

  • 1 rakah is the minimum — valid on its own in the majority view, often prayed after two or more sets of two rakat: "Witr is a rak'ah at the end of the night prayer" (Sahih Muslim 752).
  • 3 rakat is the most common practice worldwide, and the standard Hanafi form.
  • 5 or more appears in the sunnah too; the Prophet's ﷺ night prayer with witr was commonly eleven rakat in total (Sahih al-Bukhari 1147), and he allowed witr of five, three or one (Abu Dawud 1422, graded sahih by al-Albani).

If you're starting from zero: pray three. You can grow from there.

The Hanafi way: 3 rakat with qunoot

In the Hanafi school, witr is exactly three rakat prayed like Maghrib in shape — but with important differences (Shaykh Faraz Rabbani, Qibla):

  1. Pray two rakat, reciting Al-Fatihah and a surah in each, and sit for the first tashahhud.
  2. Stand for the third rakah and again recite Al-Fatihah and a surah.
  3. Before bowing, raise your hands with an extra takbir, then recite the dua al-qunoot. Ubayy ibn Ka'b reported that the Prophet ﷺ prayed witr with three rakat "and he would say the Qunut before bowing" (Nasa'i 1699, graded sahih by al-Albani).
  4. Bow, complete the rakah as normal, and end with one salam — all three rakat are connected, with no salam in between.

The well-known qunoot ("Allahumma inna nasta'inuka…") is the Hanafi standard; if you haven't memorized it yet, Hanafi teachers allow any short dua while you learn (Qibla). Another qunoot, "Allahumma ihdini fiman hadayt…", is the one the Prophet ﷺ taught his grandson al-Hasan for witr (Abu Dawud 1425, graded sahih by al-Albani).

How the other madhabs pray witr

The Shafi'i, Maliki, and Hanbali schools generally prefer not to imitate Maghrib exactly. Common forms:

  • 2 + 1: pray two rakat, give salam, then pray one final rakah separately — the most widespread non-Hanafi form. Ibn 'Umar used to give salam between the two rakat and the odd one (Sahih al-Bukhari 991).
  • A single rakah after whatever night prayer you've done: "The night prayer is offered as two rak'at followed by two rak'at and so on," and one rakah makes it odd (Sahih al-Bukhari 990).

On qunoot, the schools also differ: Shafi'is recite it in witr during the second half of Ramadan, Hanbalis recite it year-round, and Malikis generally don't include qunoot in witr at all (SeekersGuidance, "What is the qunut?"; Dar al-Ifta al-Misriyyah 23880). All of these forms are established and valid within their schools — follow the practice of your madhab or local mosque, and don't let the variety unsettle you. It is a mercy, not a contradiction.

Is witr wajib?

This is the classic exam question, and it deserves a gentle answer. Hanafi position: witr is wajib — a duty one level below fard, sinful to abandon deliberately, and made up if missed (Shaykh Yusuf Badat, Mathabah), drawing on the hadith "The witr is a duty for every Muslim" (Abu Dawud 1422, graded sahih by al-Albani). Majority position (Shafi'i, Maliki, Hanbali): witr is a sunnah mu'akkadah, an emphasized sunnah; 'Ali said, "Al-Witr is not incumbent like your obligatory prayers, but it is a Sunnah of Allah's Messenger" (Tirmidhi 453, graded sahih by al-Albani). The Prophet ﷺ maintained it so consistently that neglecting it was considered a mark against a person's reliability by some early scholars: Imam Ahmad called someone who deliberately leaves witr "a bad man, whose testimony should not be accepted" (IslamQA 36793).

Practically, the schools land in the same place: pray witr every night. For your personal situation — especially questions like making up missed witr — ask a local imam or scholar you trust.

Hayya app icon

Close every night with witr logged

Hayya gives you accurate Isha and Fajr times computed on-device — so you always know your witr window — plus one-tap logging and a streak with mercy. Free forever, no ads.

Download Hayya Free

Hayya is iPhone-only for now. On Android? Email [email protected] to hear when it's ready.

When to pray witr

The window runs from after Isha until the start of Fajr. Within that window, the Prophet ﷺ gave simple, practical advice: whoever fears they won't wake at the end of the night should pray witr before sleeping, and whoever expects to wake should delay it, because prayer at the end of the night is witnessed (Sahih Muslim 755). In other words:

  • Realist plan: pray witr right after Isha (or after your evening routine) and sleep with your night complete.
  • Night-prayer plan: if you pray tahajjud, save witr for the very end so it seals the night.

One more detail most people learn late: there is no "double witr." If you prayed witr after Isha and then happen to wake before Fajr, you can still pray extra rakat in pairs — you just don't repeat witr in the same night: "There are no two witrs during one night" (Abu Dawud 1439, graded sahih by al-Albani).

Making witr stick

Witr fails for one boring reason: bedtime arrives and you're scrolling. Attach witr to something you already do every night — brushing your teeth, plugging in your phone — and pray your three rakat before your head touches the pillow. If your Isha itself is shaky, start there with our step-by-step salah guide, then let witr ride along behind it. The Prophet ﷺ said the most beloved deed to Allah is the most regular and constant, even if it is little (Sahih al-Bukhari 6464) — three quiet rakat every night outweigh eleven prayed twice a year.

Sources

Written by Louis, founder of Hayya. This is a summary of the cited sources, not a fatwa. Ask a scholar you trust about your madhab's ruling.

FAQ

How many rakat is witr prayer?

Any odd number — 1, 3, 5, 7, 9, or 11. Three is the most common. Hanafis pray three connected rakat with one salam; other madhabs typically pray two rakat, give salam, then one final rakah.

Is witr prayer wajib or sunnah?

Hanafis classify it as wajib (necessary, and made up if missed); the majority classify it as an emphasized sunnah. Either way, no school treats skipping it lightly — and for personal rulings, ask a local scholar.

When should I pray witr — after Isha or before Fajr?

Any time between Isha and Fajr, as the last prayer of your night. Delay it to the end of the night if you reliably wake for tahajjud; otherwise pray it before you sleep.

How do you pray witr with Isha?

Pray Isha's 4 fard rakat, then its 2 sunnah, then witr: 1 rakat, or 3 (prayed together with qunoot in the Hanafi way). You can also delay witr until later in the night, before Fajr.

How many rakat is Isha?

4 fard rakat. Most people add 2 sunnah after it and then witr. Totals such as 17 also count optional prayers.

Download on the App Store