Night prayer
Witr Prayer: Meaning, Rakats & How to Pray It
Witr is the odd prayer that closes the Muslim night: one rakat, three, or up to eleven, depending on the school and the person. Here is what it actually requires, why scholars disagree about whether it is obligatory, and how to pray it step by step.
By Zaman Ishtiyaq · October 2026
7 min read
Definition
Witr (Arabic: الوتر, "odd") is the final prayer of the Muslim night, prayed after Isha and before dawn in an odd number of rakats: one, three, five, seven, nine, or eleven, depending on the school and the person's own practice. It closes out whatever voluntary night prayer precedes it, whether that is taraweeh in Ramadan, tahajjud on any other night, or nothing at all beyond witr itself. The Hanafi school rules witr wajib, a duty one rank below the five daily prayers; the Shafi'i, Maliki, and Hanbali schools treat it as sunnah muakkadah, strongly recommended but not obligatory. The Prophet ﷺ told his companions to make witr their last prayer at night (Sahih al-Bukhari 998; Sahih Muslim 751), and most forms of it close with qunut, a short standing supplication recited in the final rakat.
Of the five daily prayers, none is odd by design. Fajr is two rakats, Dhuhr and Asr and Isha are four, Maghrib is three but split into a fixed fard-and-sunnah pattern. Witr is the one prayer in the entire Islamic calendar built deliberately around an odd number, and that design is the point: an odd count cannot be mistaken for a repeat of something else. It stands alone, at the close of the night, as the last word before sleep. And unlike almost every other prayer, scholars across the four Sunni schools do not fully agree on whether praying it is obligatory, only on the fact that it should be prayed, every night, without exception.
Is witr obligatory, or sunnah?
The Hanafi school stands apart here. It rules witr wajib, a category of obligation that sits below the five fard prayers but above an ordinary sunnah, binding on the one who prays it without carrying quite the same weight as Fajr or Dhuhr. The Shafi'i, Maliki, and Hanbali schools classify it instead as sunnah muakkadah: a strongly emphasized practice the Prophet ﷺ never skipped, but not a legal obligation in the way the five prayers are.
"Witr is Haqq, so whoever does not want to, let him pray five; whoever wants, let him pray three; and whoever wants, let him pray one."
This is the hadith at the center of the disagreement, and both sides read it from the same text. Hanafi scholars weigh the word haqq, "a right" or "a due," as establishing a binding claim, and treat the flexible rakat count as a concession within an otherwise firm obligation. The other three schools read the same wording as unusually strong encouragement rather than a legal command, noting that the hadith grants a choice of rakat count in a way the genuinely obligatory prayers never do. Neither reading denies the other's hadith; they weigh the same evidence differently, which is precisely why this remains one of the few points on which the schools never converged.
What matters more than the label is that every school treats witr as something to guard nightly. The Prophet ﷺ himself never left it, in travel or at rest, and told his companions plainly to make it their last prayer of the night. Whether a person follows the Hanafi wajib position or the sunnah muakkadah position of the other schools, the practical guidance is the same: pray it, every night, and do not treat it as something to skip when tired.
How many rakats is witr?
Any odd number is valid: one, three, five, seven, nine, or eleven. The schools differ mainly on which count and which structure they consider best, not on whether the others are permitted.
The Hanafi three-rakat method
Three rakats are prayed as a single connected unit, closer in structure to Maghrib than to a normal sunnah pair. The first tashahhud is recited sitting after the second rakat without a salam, then the third rakat continues with its own recitation, qunut, and a final tashahhud and salam that close the whole unit at once.
The two-plus-one method
The Shafi'i, Maliki, and Hanbali schools more commonly pray two ordinary rakats with their own complete salam, then stand separately for a single final rakat. That last rakat is the one that genuinely stands alone as the "odd" prayer, with qunut recited inside it.
A single rakat
One rakat alone, prayed exactly as any other single unit of salah with its own tashahhud and salam, is fully valid witr on its own. Several hadith describe this as sufficient, even if three is generally considered better where time allows.
Up to eleven rakats
Aisha (رضي الله عنها) reported that the Prophet ﷺ never prayed more than eleven rakats at night, Ramadan or otherwise, commonly structured as four, then four, then three for witr (agreed upon, Sahih al-Bukhari and Sahih Muslim). This is the fullest night prayer attributed to him, witr included in the count.
How to pray witr, step by step
Regardless of rakat count, every rakat of witr follows the same basic structure of salah you already know, with one addition: qunut, recited standing in the final rakat.
Pray Isha first
Witr is a closing prayer, not a standalone one. It comes after the four fard rakats of Isha and any sunnah rakats you pray alongside it, and after taraweeh in Ramadan if you prayed it.
Set your niyyah
The intention is silent and simple: you are standing to pray witr for the sake of Allah, in whichever rakat count you intend. No specific wording is required.
Choose your rakat count and method
Decide one, three, five, seven, nine, or eleven rakats in advance. If following the Hanafi method, three rakats are prayed as one unit with a single salam at the end. If following the Shafi’i, Maliki, or Hanbali method, pray two rakats with their own salam, then stand again for one more.
Recite as in any other rakat
Each rakat opens with Surah al-Fatiha followed by another surah or portion of the Quran, exactly as in the five daily prayers. There is no special recitation unique to witr beyond what is read in any salah.
Recite qunut in the final rakat
Standing in the last rakat, before or after bowing depending on which placement you follow, recite the qunut supplication. This is the one addition that marks witr out from an ordinary two-rakat prayer.
Complete the tashahhud and close with salam
In the Hanafi three-rakat method, sit for tashahhud only after the second rakat without giving salam, then stand for the third and its qunut before the final tashahhud and salam. In the two-plus-one method, each portion closes with its own complete tashahhud and salam.
For the exact rakat totals across all five prayers plus witr in one table, the prayer rakats chart lays out fard, sunnah, and nafl counts side by side.
Qunut: the supplication inside witr
Qunut is the short standing dua that marks witr out from an ordinary prayer, most commonly the words the Prophet ﷺ taught his grandson Hasan ibn Ali, reported across Abu Dawud, al-Tirmidhi, and Ibn Majah. The full Arabic text, transliteration, and both the Hanafi and Shafi'i wordings are laid out on the dua qunoot page.
Where the schools differ is placement and frequency. The Hanafi position recites qunut every single night of the year, standing just before bowing into ruku in the final rakat, after an extra takbir with the hands raised. The Shafi'i school's more widely followed view limits nightly qunut to the second half of Ramadan only, and places it after rising from ruku rather than before it, though a second opinion within the same school, held by some of its senior scholars including Imam al-Nawawi, keeps it year-round instead. The Maliki and Hanbali positions lean closer to the Shafi'i default of restricting it, though local practice varies by region and teacher.
Practically, this means a Hanafi worshipper recites qunut nightly, in the third rakat, before bowing, while someone following the mainstream Shafi'i view will only hear it from mid-Ramadan onward, after the bow rather than before it. Both are following a sound tradition; they are simply following different strands of it. Whichever version is prayed, qunut is also where many people quietly add their own requests, in their own language, after the set Arabic wording ends.
When to pray witr
Witr can be prayed any time between Isha and the start of Fajr, and the timing question is really a question about sleep, not ruling. Praying it immediately after Isha, often right after taraweeh in Ramadan, guarantees it gets done and removes any risk of sleeping through the rest of the night.
Delaying witr to the last third of the night, after rising for tahajjud, was the Prophet's ﷺ own frequent habit, and carries extra reward precisely because that hour is harder to rise for. The honest advice scholars give matches common sense: delay it if you are genuinely confident you will wake, and pray it right after Isha if you are not. A witr prayed early is better than a witr missed because the alarm did not go off.
What if you miss or forget witr
If sleep arrives before witr is prayed, pray it as soon as you remember, whether that is immediately on waking or later the same day. Scholars treat a missed voluntary night prayer the way they treat other missed worship: something to make up when possible, not something to simply abandon once the window has closed. There is no fixed penalty attached, and no requirement to reconstruct every missed night retroactively if this becomes a recurring pattern. The point going forward is consistency, not guilt over what already happened.
A number of sharply worded warnings about neglecting witr circulate widely, some claiming severe consequences for skipping it. Several of the narrations behind these claims, including some transmitted through Ibn Majah, have been graded weak by scholars such as al-Albani, and should not be treated as settling how serious a missed witr actually is. Treat it the way you would treat any missed strongly emphasized prayer: worth correcting promptly, not a reason for despair.
Frequently Asked Questions
What is witr prayer?
Witr is the odd-numbered prayer that closes the Muslim night, prayed any time after Isha and before the start of Fajr. The word means "odd," describing its rakat count of one, three, five, seven, nine, or eleven rather than the even counts used elsewhere in salah. It follows whatever voluntary night prayer a person has already offered, whether that is taraweeh in Ramadan, tahajjud on an ordinary night, or nothing beyond witr itself. The Prophet ﷺ told his companions to make it their final prayer of the night, and most forms of witr end with qunut, a short standing supplication recited in the last rakat. Muslims disagree on whether it is obligatory, but not on whether it should be prayed; every school of thought treats it as a prayer worth guarding nightly, obligatory or not.
Is witr wajib (obligatory) or sunnah?
It depends on the school. The Hanafi school rules witr wajib, a category of obligation one rank below the five daily fard prayers, binding but not identical to them in weight. The Shafi'i, Maliki, and Hanbali schools classify it as sunnah muakkadah, a strongly emphasized sunnah that the Prophet ﷺ never omitted but did not treat as fard. Both positions draw on the same hadith literature and read it differently: Hanafi scholars weigh the command tone of reports like "Witr is Haqq" (Ibn Majah 1190) as establishing a duty, while the other schools read the same reports as strong encouragement rather than strict obligation. In practice, the disagreement changes very little: scholars across all four schools agree witr should be prayed nightly and should not be treated as optional to skip, whichever label is attached to that obligation.
How many rakats is witr prayer?
Witr can be one, three, five, seven, nine, or eleven rakats; any odd number is valid. The Hanafi school fixes it at three rakats prayed as a single unit with one tashahhud and one final salam, closer in structure to Maghrib than to a normal two-rakat sunnah. The Shafi'i, Maliki, and Hanbali schools instead favor praying two rakats with their own salam, then a separate single rakat, so the "witr" rakat genuinely stands alone as the odd one. Aisha (رضي الله عنها) reported that the Prophet ﷺ never prayed more than eleven rakats at night, Ramadan or otherwise, commonly structured as four, then four, then three for witr (Sahih al-Bukhari and Sahih Muslim). One rakat alone is also valid and sufficient on its own; three is simply considered better when time and wakefulness allow for it.
When should witr prayer be prayed?
Witr can be prayed any time between Isha and the start of Fajr, and the timing is a matter of personal reliability rather than ruling. The Prophet ﷺ instructed believers to make witr their last prayer of the night (Sahih al-Bukhari 998; Sahih Muslim 751), which gives two reasonable options. Praying it right after Isha, often immediately following taraweeh in Ramadan, guarantees it is done and removes any risk of oversleeping past Fajr. Delaying it to the final third of the night, after tahajjud, was the Prophet's ﷺ own frequent practice and carries extra reward, but only suits someone confident they will actually wake. The honest guidance scholars give is to match the choice to your own sleep pattern: delay it if you reliably wake for tahajjud, and pray it early if you do not.
What is qunut in witr prayer?
Qunut is a short standing supplication recited in the final rakat of witr, most commonly the dua the Prophet ﷺ taught his grandson Hasan ibn Ali, beginning "Allahumma inna nasta'eenuka." Schools differ on exactly where and how often it is recited. The Hanafi position recites it every single night, standing, just before bowing into ruku in the third rakat, after an additional takbir with the hands raised. The Shafi'i school's more commonly followed view limits nightly qunut to the second half of Ramadan only, recited instead after rising from ruku, though a competing opinion within the same school keeps it year-round. Whichever version a person follows, qunut is where personal requests in one's own language are often added after the set Arabic wording, making it one of the more personal, least fixed moments inside an otherwise tightly structured prayer.
What if you forget or miss witr prayer?
If you fall asleep or forget witr before Fajr enters, pray it as soon as you remember, whether that is right after waking or later in the day; scholars treat a missed voluntary night prayer the way they treat other missed worship, as something to make up rather than simply abandon. There is no fixed penalty and no requirement to make up every missed night retroactively if this becomes a pattern; the point is consistency going forward, not guilt over the past. Some stronger-worded narrations circulating online threaten severe consequences for neglecting witr; several of these, transmitted through chains scholars such as al-Albani have graded weak, should not be treated as settling how serious a missed witr is. Treat a missed witr the way you would treat any missed sunnah: regrettable, worth correcting, not catastrophic.
Witr asks very little in mechanical terms: as few as eight or nine words of recitation beyond what any single rakat already requires. What it asks for is consistency: the choice, night after night, not to let the day end without it. The schools disagree on what to call that choice. None of them disagree that it should be made.
After your last rakat
Close your night with reflection too, free on iOS.
Muhasaba is an iOS app for Islamic journaling: a five-minute nightly reflection, written or spoken, that sits naturally after witr as the very last thing before sleep.
Download on the App StoreNew to muhasaba? Learn what muhasaba al-nafs means →
