Quick facts about Witr prayer:
• Ruling: wajib per Hanafi; sunnah muakkadah per Shafi'i, Maliki, Hanbali
• Evidence: "Allah loves Witr and has prescribed it" (Sahih al-Bukhari 990)
• Timing: after Isha, before Fajr; best in last third of night
• Rakats: minimum 1 (majority) or 3 (Hanafi); maximum 11 (Bukhari 1137)
• Qunoot: in last rakat after ruku (Shafi'i/Hanbali) or before ruku in 3rd rakat (Hanafi)
• Makeup: pray during the day in pairs (Tirmidhi 466)
The Prophet Muhammad ﷺ never abandoned the Witr prayer. Through travel and residence, health and illness, peace and war, the Witr remained the seal of his night. He prayed it on his camel while traveling. He prayed it lying on his side when ill. He said: "Make the last of your night prayer Witr." And when he rose for the last third of the night, Witr was the final prayer before the adhan of Fajr.
The word witr means odd number. Every Muslim knows the phrase from the hadith of Abu Hurayrah (RA), where the Prophet ﷺ said: "Allah is Witr and He loves what is witr (odd)." (Sahih al-Bukhari 6410). Praying Witr is not merely a habit or a cultural addition. It reflects something about the nature of Allah and the nature of the relationship between the servant and his Lord that ends the night on an intentional, odd, singular note, before the day begins.
The ruling: wajib or sunnah?
The Witr prayer sits in a unique position in Islamic jurisprudence: it is the most debated prayer in terms of its precise legal status, yet all scholars agree it must not be abandoned. The disagreement is between the Hanafi school on one side and the three other major schools on the other.
The Hanafi position: Witr is wajib. This means it occupies a legal category between fard (obligatory, the five daily prayers) and sunnah muakkadah (confirmed sunnah). Omitting a wajib without valid excuse is sinful but constitutes a lesser violation than omitting a fard. The Hanafi school bases this primarily on the hadith of Ali ibn Abi Talib (RA) who reported that the Prophet ﷺ said: "O people of the Quran, perform the Witr prayer, for Allah is Witr and loves Witr." (Abu Dawud 1416). The strength of the prophetic exhortation, combined with his never abandoning it, indicates to the Hanafi scholars that it carries an obligation stronger than ordinary sunnah.
The majority position (Shafi'i, Maliki, Hanbali): Witr is a sunnah muakkadah, the most strongly confirmed of all sunnahs. The word "wajib" in the relevant hadith is interpreted by these scholars as indicating high emphasis rather than a distinct legal category. The evidence they cite includes the hadith in which the Prophet ﷺ was asked about the five daily prayers and confirmed that only those five are obligatory, with nothing additional unless the person voluntarily does more (Sahih al-Bukhari 46). The Witr, in this reading, is not among the fard five, but it is so strongly recommended that abandoning it altogether is a mark of spiritual negligence.
Practically, this difference affects mainly what happens if you miss Witr. For Hanafis, it must be made up as a debt. For the majority, it should be made up out of devotion, but missing it is not a sin in the strict sense of violating an obligation.
The practical position a Muslim should hold regardless of school: do not miss Witr. The Prophet ﷺ said clearly: "Whoever is afraid that he will not get up at the end of the night, let him pray Witr at the beginning of it. And whoever is certain of getting up at the end of the night, let him pray Witr at the end, for prayer at the end of the night is witnessed and that is better." (Sahih Muslim 755). This hadith itself frames Witr as something a Muslim is expected to perform every night.
Timing: when to pray Witr
The Witr prayer begins after the obligatory Isha prayer and ends at the first light of Fajr. Its window is the entire night.
The best time within that window is the last third of the night, before the Fajr adhan. This is when the Prophet ﷺ prayed most of his night prayers and sealed them with Witr. It is also the time described in multiple hadith as the time when Allah descends to the lowest heaven and calls out asking if there is anyone who supplicates so that He may answer, anyone who seeks forgiveness so that He may forgive (Sahih al-Bukhari 1145).
Aisha (RA) described the Prophet's night: "He would sleep the first part of the night, then rise and pray, then return to sleep, then rise again as dawn approached, pray Witr, and then if his wife was awake he would speak with her, and if not he would lie down." (Sahih al-Bukhari 1160). This rhythm, sleeping, praying, sleeping, then sealing the night with Witr before Fajr, is the most complete Sunnah model.
However, the Prophet ﷺ made a clear accommodation for those who fear missing the last third: pray Witr before sleeping. He told Abu Hurayrah (RA): "My intimate friend (the Prophet) advised me to pray Witr before sleeping." (Sahih al-Bukhari 1178). This permission means that praying Witr immediately after Isha, before sleeping, is valid and preferable to risking missing it entirely.
The time for Witr ends when the Fajr prayer time begins (the appearance of true dawn, al-fajr al-sadiq). If Fajr time enters and you have not yet prayed Witr, you have missed it for that night and should make it up during the day.
How many rakats?
The question of how many rakats constitutes a valid Witr is one of the most frequently asked questions in Islamic prayer practice. The answer varies by school and is supported by multiple authentic hadith describing different numbers.
One rakat: Allowed and valid according to the Shafi'i, Maliki, and Hanbali schools. The evidence is direct: "Witr is one rakat at the end of the night." (Sahih Muslim 752). This is the minimum valid Witr for the majority. However, most scholars note that performing more is better and more in line with the Prophet's usual practice.
Three rakats: The most common practice and the minimum in the Hanafi school. The Hanafi school requires three rakats with one salam (similar in structure to Maghrib but with different recitation and Qunoot in the third). The Hanbali school also considers three rakats the standard Witr.
Five rakats: Valid with a single salam at the end. The Prophet ﷺ is reported to have prayed five-rakat Witr on some occasions, with only one tashahhud and salam at the end (Sahih Muslim 737).
Seven or nine rakats: Also narrated from the Prophet, with one salam at the very end.
Eleven rakats: This is the maximum reported from the Prophet. Aisha (RA) described his night prayer as follows:
"The Prophet ﷺ did not pray more than eleven rakats in Ramadan or outside of it. He would pray four (rakats), do not ask about their beauty and length, then four more (rakats), do not ask about their beauty and length, then three rakats (Witr)." (Sahih al-Bukhari 1147)
In a related narration in Sahih al-Bukhari 1137, the number eleven is stated explicitly. Thirteen is mentioned in some narrations and is understood to include a two-rakat opening light prayer before the main night prayer begins.
The scholars' consensus is that there is no fixed required number above the minimum. You may pray one, three, five, seven, nine, or eleven, and each is established from the Sunnah. What matters is that the final number is odd (witr).
The shafa pairing
When a Muslim prays more than one rakat for Witr (such as three, five, or eleven rakats), the even rakats that precede the final odd rakat are called the shafa (pair or even). The shafa and the witr together constitute the complete night prayer ending.
For example, in the most common three-rakat Witr structure: two rakats form the shafa (prayed with a salam at the end according to the Shafi'i and Hanbali schools), and then one additional rakat forms the witr. Together they make three. The Hanafi school performs the three as a single continuous unit without a salam between the second and third rakat.
Ibn Umar (RA) reported that the Prophet ﷺ said: "Perform the night prayer in twos, and if you fear dawn is approaching, pray one rakat which will make the whole of your previous night prayer into an odd number." (Sahih al-Bukhari 990). This hadith establishes the principle that the night prayer is built in pairs (two-rakat units) and sealed with a single final odd rakat.
This is why, in eleven-rakat night prayer: eight rakats of night prayer (four pairs) plus one pair of shafa plus one witr equals eleven. Or in the most common model: eight or ten rakats of tahajjud, then a two-rakat shafa, then the single Witr rakat.
What to recite in each rakat
The Prophet ﷺ had a specific Sunnah pattern for what to recite in a three-rakat Witr. This is reported by Ubayy ibn Ka'b (RA):
"The Prophet ﷺ used to recite in the first rakat of Witr: Sabbihisma Rabbika al-A'la (Surah al-A'la, 87); in the second rakat: Qul ya ayyuha al-kafirun (Surah al-Kafirun, 109); and in the third rakat: Qul Huwa Allahu Ahad (Surah al-Ikhlas, 112)." (Tirmidhi 463, Abu Dawud 1424, Ibn Majah 1171, all considered hasan or sahih)
Some narrations add that alongside Surah al-Ikhlas in the third rakat, the Prophet would also recite Surah al-Falaq (113) and Surah al-Nas (114). This triple combination (Ikhlas, Falaq, Nas) in the final rakat appears in several chains and is acted upon in many traditions, particularly in Ramadan.
For one-rakat Witr, Surah al-Ikhlas alone (the surah that is equivalent to one-third of the Quran) is the established sunnah recitation. Longer recitations are also permissible.
For five, seven, or more-rakat Witr, the Prophet's pattern shifts: in five rakats he would complete the tashahhud only in the final rakat (Muslim 737), and the recitation pattern across the additional rakats is not as specifically prescribed. A common practice is to recite one surah per rakat from the short surahs at the end of the Quran.
How to pray three-rakat Witr
The three-rakat Witr is the most commonly performed version. Here is the complete structure, with the variant between the Hanafi and majority (Shafi'i/Hanbali) approaches noted.
Option A: Two separate units (Shafi'i and Hanbali method)
Pray two rakats as a complete prayer with all rukus, sujuds, tashahhud, and final salam. This is the shafa. Then perform niyyah for a single rakat Witr. Open with takbirat al-ihram, recite al-Fatiha and a surah (Surah al-Ikhlas is sunnah), bow, rise, perform Qunoot dua while standing after rising from ruku, then complete the rakat with sujud, second sujud, tashahhud, and salam. This method separates the shafa from the witr with a salam.
Option B: Three continuous rakats with one salam (Hanafi method)
Pray all three rakats as a single continuous prayer, similar in structure to Maghrib but with two differences. First, the recitation pattern uses the three sunnah surahs described above (al-A'la, al-Kafirun, al-Ikhlas). Second, in the third rakat, after reciting al-Fatiha and Surah al-Ikhlas, you do not go into ruku immediately. Instead, you say a second takbir, raise your hands (in the Hanafi description, alongside the ears as in the opening takbir), and recite the Qunoot dua while standing, then bow for ruku and complete the rakat. The prayer concludes with one salam after the final tashahhud.
In both methods, each rakat opens with takbirat al-ihram, al-Fatiha, an additional surah, ruku with three glorifications, rising with "Sami' Allahu liman hamidah / Rabbana wa lakal hamd," two sujuds with three glorifications each, and the appropriate sitting positions.
Qunoot al-Witr
The Qunoot in Witr is the special supplication recited during the standing position in the final rakat. As detailed in the companion article on Dua al-Qunoot, the transmitted text is the dua taught by the Prophet ﷺ to his grandson Hasan ibn Ali (RA), recorded in Abu Dawud 1425 and classified as hasan sahih.
The text begins: Allahumma ihdini fiman hadayt (O Allah, guide me among those You have guided) and covers seven requests: guidance, wellbeing, closeness, blessing in provision, protection from evil decrees, acknowledgment that Allah decrees and none decrees over Him, and acknowledgment that whom He befriends is never humiliated. It ends with: Tabarakta Rabbana wa ta'alayt (Blessed are You, our Lord, and Exalted).
The Hanbali school traditionally adds a second portion to the Witr Qunoot, particularly in Ramadan, beginning with: Allahumma inna nasta'inuka wa nastaghfiruk wa nu'minu bika wa natawakkalu 'alayk. This longer Qunoot is attributed to the practice of Umar ibn al-Khattab (RA) and is established in the practice of the early Muslims (salaf).
The timing of the Qunoot within the prayer: after ruku in the final rakat for the Shafi'i and Hanbali schools; before ruku in the third rakat (using a second takbir) for the Hanafi school. See the separate article on Dua al-Qunoot for a full treatment of the positions, hand positions, and what to do if you forget.
The midnight prohibition
One of the less commonly discussed rulings about Witr is the guidance against praying it before midnight without a valid reason. This is derived from the Prophet's strong exhortation to place Witr at the end of the night's prayer, and from the narration: "The Prophet ﷺ said: 'Whoever fears he will not wake up at the end of the night, let him pray Witr before sleeping'" (Sahih Muslim 755). The implicit converse is that someone who is not sleeping and has no such fear should not hurry to pray Witr immediately after Isha.
Several scholars from the Hanafi, Shafi'i, and Hanbali schools have stated that praying Witr immediately after the Isha fard prayer while the night is still young, without the excuse of potentially oversleeping, is contrary to the prophetic guidance. Ibn Qudama and others cite that the Prophet's Witr was at the end of his night prayer, not at its beginning. The night prayer (qiyam al-layl or tahajjud) precedes the Witr; sealing the night in its last portion is the Sunnah.
The practical guidance most scholars give: if you are someone who regularly wakes in the last third of the night, pray Witr then. If you are uncertain, pray Witr before sleeping but after some additional voluntary prayers. Praying Witr the moment Isha is done, while planning to watch television for two hours before sleeping, misunderstands the spirit and structure of the Sunnah, though the Witr itself would be technically valid.
Making up missed Witr
What should you do if you wake up and Fajr time has already entered, meaning you missed your Witr?
You make it up. The scholars are in agreement that Witr should be made up, and they agree on an important detail: when making up Witr during the day, you do not pray an odd number. You add one rakat to make it even. This unusual ruling comes from the hadith:
"Whoever did not pray Witr, let him pray it." (Abu Dawud 1431, supported by multiple narrations)
And from the report of Aisha (RA): "When the Prophet missed his night prayers due to sleep or illness he would pray twelve rakats during the day." (Sahih Muslim 746). Twelve is even. The Prophet compensated for what was normally eleven (odd) by praying twelve (even) during the day.
Tirmidhi 466 provides specific guidance: "If a man sleeps through the Witr or forgets it, let him pray it when he wakes up or when he remembers it." Some narrations in Tirmidhi explicitly mention making up Witr as two rakats during the day, compensating for a one-rakat Witr. The principle: during the day (when the night's odd-ending context no longer applies), you add one rakat to make it even.
In practical terms: if your usual Witr is three rakats and you missed it, pray four rakats as makeup during the day. If your usual Witr is one rakat, pray two. This ensures the odd character is preserved for the night itself while the daytime makeup adapts appropriately.
The time window for making up Witr during the day runs from after Fajr until just before Dhuhr, according to many scholars, though others permit making it up at any point during the day. The immediate window after Fajr is the most commonly cited.
Witr while traveling
The Witr prayer is not reduced or omitted during travel. Unlike the fard prayers (which are shortened from 4 rakats to 2 for a traveler), voluntary prayers including Witr are performed in their normal form while traveling.
The evidence is the consistent practice of the Prophet ﷺ: "The Prophet ﷺ prayed Witr on his camel." (Sahih al-Bukhari 999, Muslim 700). The Prophet prayed his Witr on a moving camel during travel, facing whatever direction the camel was facing rather than specifically toward the Qibla. This is a remarkable concession that underlines how seriously he took Witr: even while traveling, even on an animal, even without being able to face the Qibla, he maintained the Witr.
The majority of scholars hold that other voluntary prayers may also be prayed on a vehicle or on a mount while traveling. For Witr specifically, the evidence from the Prophet's camel-back practice is unambiguous. The traveler should pray Witr at the appropriate time, in whatever circumstances they find themselves, rather than using travel as a reason to omit it.
FAQ
Is Witr prayer obligatory or optional?
The Hanafi school holds that Witr is wajib (obligatory), meaning it is sinful to omit it without valid reason, though it is a lesser level of obligation than the five daily fard prayers. The majority of scholars (Shafi'i, Maliki, Hanbali) hold that Witr is a sunnah muakkadah (a strongly emphasized sunnah). All four schools agree it should not be abandoned without good reason and that the Prophet never abandoned it himself.
What is the minimum number of rakats for Witr?
The Shafi'i, Maliki, and Hanbali schools hold that the minimum valid Witr is one rakat, based on the hadith "Witr is one rakat at the end of the night" (Sahih Muslim 752). The Hanafi school requires at minimum three rakats performed with one salam. The maximum is eleven rakats according to Aisha's description of the Prophet's night prayer in Sahih al-Bukhari 1137.
When is the best time to pray Witr?
The best time is the last third of the night, just before the Fajr adhan. The Prophet said: "Make the last of your prayer at night Witr" (Sahih al-Bukhari 998). However, for someone not confident they will wake up in the last third, praying Witr before sleeping after Isha is acceptable and the Prophet recommended this for such people (Sahih Muslim 755).
How do I make up Witr I missed?
If you miss Witr, make it up during the day by adding one rakat to your usual number (making it even). For example, if your regular Witr is three rakats, pray four rakats as makeup. Aisha (RA) reported that when the Prophet missed his night prayers due to sleep or illness, he would pray twelve rakats during the day (Sahih Muslim 746). Tirmidhi 466 also records specific guidance on making up Witr during the day.
What surahs are recited in Witr prayer?
The established sunnah for three-rakat Witr is: Surah al-A'la (Sabbihisma) in the first rakat, Surah al-Kafirun in the second rakat, and Surah al-Ikhlas in the third rakat. Some narrations add Surah al-Falaq and Surah al-Nas alongside al-Ikhlas in the third rakat. For one-rakat Witr, Surah al-Ikhlas alone is the established sunnah recitation. These are sunnah recitations and any Quranic surah is valid.
FivePrayer reminds you before Fajr so you never miss Witr again.
Accurate prayer times for all five prayers plus Witr reminder, calculated for your exact location. Free, no ads, no tracking.