Guide · Night prayer

Witr: the odd-numbered prayer that closes the night

Witr is prayed after Isha and before Fajr, as the last prayer of your night, in an odd number of rak'ahs: one, three, five or more. Many people pray three, reciting Surah al-A'la, al-Kafirun and al-Ikhlas, with the du'a of Qunut in the last rak'ah. The schools differ on whether it is wajib (the Hanafi view) or a confirmed sunnah (the other schools).

Last checked

Aqdam records; it doesn't rule. Scholars of different schools differ on some details here, so ask a scholar you trust.

What is Witr?

Witr means odd. It is the prayer with an odd number of rak'ahs that seals the night prayer. The Prophet ﷺ said Witr is a rak'ah at the end of the night prayer, and told his Companions to make Witr the last prayer of their night.

If you pray Tahajjud, Witr comes at the end of it. If you don't, you can pray Witr on its own after Isha.

Sahih Muslim 752aSahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الْوِتْرُ رَكْعَةٌ مِنْ آخِرِ اللَّيْلِ".

“Witr is a rak'ah at the end of the night prayer”

Grade: Sahih

Sahih al-Bukhari 998Sahih
Arabic text

قَالَ " اجْعَلُوا آخِرَ صَلاَتِكُمْ بِاللَّيْلِ وِتْرًا".

“Make witr as your last prayer at night”

Grade: Sahih

How many rak'ahs is Witr?

Witr can be one, three, five or seven rak'ahs. The Prophet ﷺ said that whoever wishes may pray it with five, with three, or with one, and in one narration with seven. His own nightly prayer was often eleven rak'ahs in total: four, four, then three.

Numbers of rak'ahs for Witr in the hadith
Rak'ahsWhere it comes from
1Witr is a rak'ah at the end of the night prayer (Muslim 752a)
3Whoever wishes, with three (Abu Dawud 1422); his four, four, then three (Bukhari 1147)
5Whoever wishes, with five (Abu Dawud 1422)
7Whoever wishes, with seven (an-Nasa'i 1710)

How three rak'ahs are joined differs between the schools. In the Hanafi school, three are prayed with a sitting for tashahhud after the second and one salam at the end. Many others pray two, say salam, then pray one, or pray all three with one sitting at the end. Each has its evidence; follow the way of the scholar you trust.

Sunan Abi Dawud 1422Sahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الْوِتْرُ حَقٌّ عَلَى كُلِّ مُسْلِمٍ فَمَنْ أَحَبَّ أَنْ يُوتِرَ بِخَمْسٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِثَلاَثٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِوَاحِدَةٍ فَلْيَفْعَلْ".

“if anyone wishes to observe it with five rak'ahs, he may do so; if anyone wishes to observe it with three, he may do so, and if anyone wishes to observe it with one, he may do so”

Grade: Sahih

Sunan an-Nasa'i 1710Sahih
Arabic text

أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " الْوِتْرُ حَقٌّ فَمَنْ شَاءَ أَوْتَرَ بِسَبْعٍ وَمَنْ شَاءَ أَوْتَرَ بِخَمْسٍ وَمَنْ شَاءَ أَوْتَرَ بِثَلاَثٍ وَمَنْ شَاءَ أَوْتَرَ بِوَاحِدَةٍ".

“whoever wants to pray witr with seven (rak'ahs), let him do so; whoever wants to pray witr with five, let him do so, whoever wants to pray witr with three, let him do so; and whoever wants to pray witr with one, let him do so”

Grade: Sahih

Sahih al-Bukhari 1147Sahih
Arabic text

… الله عليه وسلم يَزِيدُ فِي رَمَضَانَ وَلاَ فِي غَيْرِهِ عَلَى إِحْدَى عَشْرَةَ رَكْعَةً، يُصَلِّي أَرْبَعًا فَلاَ تَسَلْ عَنْ حُسْنِهِنَّ وَطُولِهِنَّ، ثُمَّ يُصَلِّي أَرْبَعًا فَلاَ تَسَلْ عَنْ حُسْنِهِنَّ وَطُولِهِنَّ، ثُمَّ يُصَلِّي ثَلاَثًا، قَالَتْ عَائِشَةُ فَقُلْتُ يَا رَسُولَ اللَّهِ أَتَنَامُ قَبْلَ أَنْ تُوتِرَ. فَقَالَ " يَا عَائِشَةُ، إِنَّ عَيْنَىَّ تَنَامَانِ وَلاَ يَنَامُ …

“he used to offer four rak`at-- do not ask me about their beauty and length, then four rak`at, do not ask me about their beauty and length, and then three rak`at”

Grade: Sahih

When is the time for Witr?

From after Isha until Fajr. Aisha said the Prophet ﷺ prayed Witr at different hours of the night, from the early part to the last hour before dawn.

If you expect to wake for night prayer, pray Witr at the end of the night: the Prophet ﷺ said that is better. If you fear you won't wake, pray it before you sleep. Abu Hurayrah said his close friend, the Prophet ﷺ, advised him to pray Witr before sleeping.

If you sleep through Witr or forget it, the Prophet ﷺ said to pray it when you remember. He also said there are no two Witrs in one night, so if you prayed Witr before sleeping and then wake for Tahajjud, scholars differ on how to pray after it. Ask a scholar you trust.

Sahih al-Bukhari 996Sahih
Arabic text

قَالَتْ كُلَّ اللَّيْلِ أَوْتَرَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَانْتَهَى وِتْرُهُ إِلَى السَّحَرِ.

“Allah's Messenger (ﷺ) offered witr prayer at different nights at various hours extending (from the `Isha' prayer) up to the last hour of the night”

Grade: Sahih

Sahih Muslim 755aSahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ خَافَ أَنْ لاَ يَقُومَ مِنْ آخِرِ اللَّيْلِ فَلْيُوتِرْ أَوَّلَهُ وَمَنْ طَمِعَ أَنْ يَقُومَ آخِرَهُ فَلْيُوتِرْ آخِرَ اللَّيْلِ فَإِنَّ صَلاَةَ آخِرِ اللَّيْلِ مَشْهُودَةٌ وَذَلِكَ أَفْضَلُ". وَقَالَ أَبُو مُعَاوِيَةَ مَحْضُورَةٌ.

“If anyone is afraid that he may not get up in the latter part of the night, he should observe Witr in the first part of it; and if anyone is eager to get up in the last part of it, he should observe Witr at the end of the night, for prayer at the end of the night is witnessed (by the angels) and that is preferable”

Grade: Sahih

Sahih Muslim 721aSahih
Arabic text

قَالَ أَوْصَانِي خَلِيلِي صلى الله عليه وسلم بِثَلاَثٍ بِصِيَامِ ثَلاَثَةِ أَيَّامٍ مِنْ كُلِّ شَهْرٍ وَرَكْعَتَىِ الضُّحَى وَأَنْ أُوتِرَ قَبْلَ أَنْ أَرْقُدَ.

“My friend (the Holy Prophet, may peace be upon him) has instructed me to do three things:three fasts during every month, two rak'ahs of the forenoon prayer, and observing Witr prayer before going to bed”

Grade: Sahih

Sunan Abi Dawud 1431Sahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " مَنْ نَامَ عَنْ وِتْرِهِ أَوْ نَسِيَهُ فَلْيُصَلِّهِ إِذَا ذَكَرَهُ".

“If anyone oversleeps and misses the witr, or forgets it, he should pray when he remembers”

Grade: Sahih

Jami at-Tirmidhi 470Sahih
Arabic text

… اللَّيْلِ ثُمَّ نَامَ ثُمَّ قَامَ مِنْ آخِرِ اللَّيْلِ فَإِنَّهُ يُصَلِّي مَا بَدَا لَهُ وَلاَ يَنْقُضُ وِتْرَهُ وَيَدَعُ وِتْرَهُ عَلَى مَا كَانَ. وَهُوَ قَوْلُ سُفْيَانَ الثَّوْرِيِّ وَمَالِكِ بْنِ أَنَسٍ وَابْنِ الْمُبَارَكِ وَالشَّافِعِيِّ وَأَهْلِ الْكُوفَةِ وَأَحْمَدَ. وَهَذَا أَصَحُّ لأَنَّهُ قَدْ رُوِيَ مِنْ غَيْرِ وَجْهٍ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَدْ صَلَّى بَعْدَ …

“There are no two Witr in one night”

Grade: Sahih

How to pray Witr (three rak'ahs)

  1. Pray it after Isha, as the last prayer of your night. Make the intention in your heart.
  2. In the first rak'ah, after Al-Fatihah, recite Surah al-A'la (87).
  3. In the second, recite Surah al-Kafirun (109). Sit for tashahhud here if you follow the Hanafi way; or end with salam and stand for one more rak'ah, if that is the way you follow.
  4. In the third, recite Surah al-Ikhlas (112), then say the du'a of Qunut (see below).
  5. Finish the rak'ah and end with salam.
  6. After salam, say Subhanal-Malikil-Quddus (Glory be to the Sovereign, the Most Holy) three times, drawing out the last one.

To pray a single rak'ah, pray it like any one rak'ah: Al-Fatihah and some Quran, ruku', sujud, tashahhud and salam.

Sunan an-Nasa'i 1699Sahih
Arabic text

أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُوتِرُ بِثَلاَثِ رَكَعَاتٍ كَانَ يَقْرَأُ فِي الأُولَى بِـ{ سَبِّحِ اسْمَ رَبِّكَ الأَعْلَى} وَفِي الثَّانِيَةِ بِـ{ قُلْ يَا أَيُّهَا الْكَافِرُونَ} وَفِي الثَّالِثَةِ بِـ{ قُلْ هُوَ اللَّهُ أَحَدٌ} وَيَقْنُتُ قَبْلَ الرُّكُوعِ فَإِذَا فَرَغَ قَالَ عِنْدَ فَرَاغِهِ" سُبْحَانَ الْمَلِكِ الْقُدُّوسِ". ثَلاَثَ مَرَّاتٍ يُطِيلُ فِي آخِرِهِنَّ.

“The Messenger of Allah (ﷺ) used to pray witr with three rak'ahs. In the first he would recite: "Glorify the Name of your Lord, the Most High" in the second: "Say: O you disbelievers!", and in the third: "Say: He is Allah, (the) One". And he would say the Qunut before bowing, and when he finished he would say: Subhanal-Malikil-Quddus (Glory be to the Sovereign, the Most Holy) three times, elongating the words the last time”

Grade: Sahih

Sunan Abi Dawud 1423Sahih
Arabic text

قَالَ كَانَ رَسُولُ اللَّهِ صلى الله عليه وسلم يُوتِرُ بِـ{ سَبِّحِ اسْمَ رَبِّكَ الأَعْلَى} وَ{ قُلْ لِلَّذِينَ كَفَرُوا} وَاللَّهُ الْوَاحِدُ الصَّمَدُ.

“The Messenger of Allah (ﷺ) used to observe witr with (reciting) "Glorify the name of thy Lord, the most High" (Surah 87), "Say O disbelievers" (Surah 109), and "Say, He is Allah, the One”

Grade: Sahih

Du'a Qunut (Dua Qunoot) in Witr

Qunut is a du'a said standing in the last rak'ah of Witr. Al-Hasan ibn Ali, the Prophet's ﷺ grandson, said he was taught these words to say in Witr:

Allahumma ihdini fiman hadayt, wa 'afini fiman 'afayt, wa tawallani fiman tawallayt, wa barik li fima a'tayt, wa qini sharra ma qadayt, fa innaka taqdi wa la yuqda 'alayk, wa innahu la yadhillu man walayt, tabarakta Rabbana wa ta'alayt.

Meaning: O Allah, guide me among those You have guided, pardon me among those You have pardoned, befriend me among those You have befriended, bless me in what You have given, and save me from the evil of what You have decreed. You decree and none decrees over You. Whoever You befriend is never humbled. Blessed are You, our Lord, and Exalted. Read it with the Arabic in the Du'a Library.

The schools differ on details: whether Qunut is said before or after ruku' (a narration of Ubayy ibn Ka'b mentions before), whether hands are raised, and whether it is said every night or at certain times of the year. Follow the scholar you trust.

Sunan Abi Dawud 1425Sahih
Arabic text

قَالَ قَالَ الْحَسَنُ بْنُ عَلِيٍّ رضى الله عنهما عَلَّمَنِي رَسُولُ اللَّهِ صلى الله عليه وسلم كَلِمَاتٍ أَقُولُهُنَّ فِي الْوِتْرِ قَالَ ابْنُ جَوَّاسٍ فِي قُنُوتِ الْوِتْرِ " اللَّهُمَّ اهْدِنِي فِيمَنْ هَدَيْتَ وَعَافِنِي فِيمَنْ عَافَيْتَ وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ وَبَارِكْ لِي فِيمَا أَعْطَيْتَ وَقِنِي شَرَّ مَا قَضَيْتَ إِنَّكَ تَقْضِي وَلاَ يُقْضَى عَلَيْكَ وَإِنَّهُ لاَ يَذِلُّ …

“The Messenger of Allah (ﷺ) taught me some words that I say during the witr”

Grade: Sahih

Jami at-Tirmidhi 464Sahih
Arabic text

… أَبِي الْحَوْرَاءِ السَّعْدِيِّ وَاسْمُهُ رَبِيعَةُ بْنُ شَيْبَانَ. وَلاَ نَعْرِفُ عَنِ النَّبِيِّ صلى الله عليه وسلم فِي الْقُنُوتِ فِي الْوِتْرِ شَيْئًا أَحْسَنَ مِنْ هَذَا. وَاخْتَلَفَ أَهْلُ الْعِلْمِ فِي الْقُنُوتِ فِي الْوِتْرِ فَرَأَى عَبْدُ اللَّهِ بْنُ مَسْعُودٍ الْقُنُوتَ فِي الْوِتْرِ فِي السَّنَةِ كُلِّهَا وَاخْتَارَ الْقُنُوتَ قَبْلَ الرُّكُوعِ. وَهُوَ قَوْلُ بَعْضِ أَهْلِ …

“Allah's Messenger taught me some phrases to say during Al-Witr (Allahummahdini fiman hadait, wa a'fini fiman afait, wa tawallani fiman tawallait, wa barik Li fima atait, wa qini sharra ma qadait, fa Innaka taqdi wa la yuqda Alaik, wa innahu la yadhillu man walait, tabarakta Rabbana wa ta'alait.)”

Grade: Sahih

Sunan an-Nasa'i 1745Sahih
Arabic text

قَالَ قَالَ الْحَسَنُ عَلَّمَنِي رَسُولُ اللَّهِ صلى الله عليه وسلم كَلِمَاتٍ أَقُولُهُنَّ فِي الْوَتْرِ فِي الْقُنُوتِ " اللَّهُمَّ اهْدِنِي فِيمَنْ هَدَيْتَ وَعَافِنِي فِيمَنْ عَافَيْتَ وَتَوَلَّنِي فِيمَنْ تَوَلَّيْتَ وَبَارِكْ لِي فِيمَا أَعْطَيْتَ وَقِنِي شَرَّ مَا قَضَيْتَ إِنَّكَ تَقْضِي وَلاَ يُقْضَى عَلَيْكَ وَإِنَّهُ لاَ يَذِلُّ مَنْ وَالَيْتَ تَبَارَكْتَ رَبَّنَا وَتَعَالَيْتَ".

“The Messenger of Allah (ﷺ) taught me some words to say in witr in Qunut”

Grade: Sahih

Is Witr wajib or sunnah?

The schools differ. The Hanafi school holds that Witr is wajib (necessary, a level below the five obligatory prayers). The Maliki, Shafi'i and Hanbali schools hold that it is a strongly confirmed sunnah, not obligatory.

Both sides draw on the hadith. The Prophet ﷺ said Witr is a duty for every Muslim; and Ibn Umar reported that he prayed Witr on his mount while travelling, which he never did with the obligatory prayers. It is a prayer the Prophet ﷺ kept and told his Companions to keep. Which view you follow is a question for a scholar you trust.

Sunan Abi Dawud 1422Sahih
Arabic text

قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم " الْوِتْرُ حَقٌّ عَلَى كُلِّ مُسْلِمٍ فَمَنْ أَحَبَّ أَنْ يُوتِرَ بِخَمْسٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِثَلاَثٍ فَلْيَفْعَلْ وَمَنْ أَحَبَّ أَنْ يُوتِرَ بِوَاحِدَةٍ فَلْيَفْعَلْ".

“The witr is a duty for every Muslim”

Grade: Sahih

Sahih al-Bukhari 1000Sahih
Arabic text

قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم يُصَلِّي فِي السَّفَرِ عَلَى رَاحِلَتِهِ، حَيْثُ تَوَجَّهَتْ بِهِ، يُومِئُ إِيمَاءً، صَلاَةَ اللَّيْلِ إِلاَّ الْفَرَائِضَ، وَيُوتِرُ عَلَى رَاحِلَتِهِ.

“The Prophet (ﷺ) used to offer (Nawafil) prayers on his Rahila (mount) facing its direction by signals, but not the compulsory prayer. He also used to pray witr on his (mount) Rahila”

Grade: Sahih

Questions people ask

How many rak'ahs is Witr?

An odd number: one, three, five or seven are all in the hadith. Three is the most common.

Can I pray Witr with one rak'ah?

Yes, one rak'ah is in the hadith: the Prophet ﷺ said Witr is a rak'ah at the end of the night prayer. The schools differ on joining rak'ahs, so ask a scholar you trust about the way you follow.

What is the time for Witr?

After Isha until Fajr. Pray it at the end of the night if you will wake, or before sleeping if you fear you won't.

What is the du'a after Witr?

After the salam of Witr the Prophet ﷺ would say Subhanal-Malikil-Quddus three times, drawing out the last.

Is Du'a Qunut (Qunoot) said before or after ruku'?

The schools differ. A narration of Ubayy ibn Ka'b mentions before ruku'; others say it after. Follow the scholar you trust.

Is Witr wajib?

In the Hanafi school it is wajib; in the Maliki, Shafi'i and Hanbali schools it is a confirmed sunnah. Either way, it is a prayer the Prophet ﷺ kept and told his Companions to keep.

Keep going

Witr is one of the habits in Aqdam: a small, steady close to each night, with the Qunut in the Du'a Library.

Download on the App StoreGet it on Google Play

Every hadith and verse on this page links to its source. Spot a mistake? Let us know.