How to Pray Witr: A Step-by-Step Guide
If you have ever wondered how to pray Witr, the short answer is that it is one of the easiest prayers to learn once you already know how to pray. Witr is the odd-numbered prayer that closes out the night, prayed sometime after Isha and before the dawn of Fajr, and it can be as short as a single rakah. This guide walks through what Witr is, exactly when to pray it, how many rakahs to choose, the words of Dua al-Qunut, how the different schools of thought approach the details, and how to turn Witr into a habit you keep for life.
Never miss Witr again
Niyyara is a free, private, ad-free companion with accurate prayer times, the azan, an exact Qibla compass, and step-by-step worship guides, including reminders that carry you all the way through the night prayers. No subscriptions, no ads, ever.
What's in this guide
- What is Witr prayer?
- When to pray Witr: the right time
- How many rakahs is Witr?
- How to pray Witr step by step: one rakah
- How to pray Witr step by step: three rakahs
- Dua al-Qunut: what it is and where it is said
- How the schools of thought differ on Witr
- Witr during Ramadan and with Tarawih
- Common mistakes and practical tips
- Building a lasting Witr habit
- How Niyyara helps you pray Witr on time
What is Witr prayer?
Witr comes from an Arabic word meaning odd, as in an odd number, the opposite of shafa, which means even. Witr prayer is called that because it is always prayed in an odd number of rakahs, one, three, five, seven, nine, or eleven, and it is prayed at night, sometime after Isha and before the start of Fajr. Its role is to close out the night's voluntary prayers with a single unit that has no partner, which is a small but meaningful symbol in a religion that constantly reminds believers that Allah alone is One.
Witr was prayed by the Prophet Muhammad, peace be upon him, every night of his life, and he strongly encouraged his companions to keep it. Because of how consistently he observed it, the scholars of the Hanafi school classify Witr as wajib, a category of obligation that sits just below fard but is still binding on every capable Muslim. The Maliki, Shafii, and Hanbali schools classify it as sunnah muakkadah, meaning a confirmed and strongly recommended practice of the Prophet that is not sinful to leave occasionally but should never be abandoned as a habit. Either way you look at it, Witr is not a minor extra. It is a prayer the Prophet did not skip, and it deserves a steady place in your night.
Practically, Witr usually shows up in one of two settings. Many people pray it as the last prayer immediately after Isha, before going to sleep. Others prefer to wake later in the night, pray a set of extra prayers known as Tahajjud, and then close the night with Witr right before Fajr. Both are correct, and which one suits you best depends mostly on how confident you are that you will actually wake up later in the night. We will cover that choice in detail in the next section.
Witr is an odd-numbered prayer, most commonly one or three rakahs, prayed anytime after Isha and before Fajr, that closes out the night and includes a short supplication called Dua al-Qunut.
When to pray Witr: the right time
The window for Witr opens the moment you finish praying Isha, including its sunnah rakahs, and it stays open until the true dawn begins, which is when the time for Fajr enters. Once Fajr's time has started, the window for Witr has closed for that night. This is why an accurate prayer time source matters here just as much as it does for the five daily prayers. You need to know both when Isha begins, since Witr cannot come before it, and when true dawn arrives, since Witr cannot come after it.
Within that window, you have real flexibility, and the Prophet gave clear guidance on how to choose. He advised his companions that whoever is confident they will wake up in the last part of the night should delay Witr until then, because prayer in the last third of the night is witnessed and carries special virtue. Whoever is not confident they will wake up should pray Witr right after Isha, before sleeping, so that the prayer is not lost to oversleeping. This advice, recorded in Sahih Muslim, gives you a simple personal rule rather than a single fixed clock time.
In practice, this plays out in two common patterns:
- Pray Witr right after Isha. This is the safer default for most people, especially anyone who is not in the habit of waking for Tahajjud yet. You pray your Isha sunnah, then Witr, and your night prayers are complete before you go to sleep. Nothing is left hanging on whether an alarm works.
- Delay Witr until after Tahajjud. If you plan to wake in the last third of the night to pray extra voluntary rakahs, you leave Witr until the very end of that session, right before Fajr's time begins. This way Witr genuinely closes the night rather than sitting in the middle of it.
One detail worth knowing clearly: a person prays only one Witr per night. If you already prayed Witr after Isha and then wake up later and want to pray more voluntary prayers, you do not repeat Witr. You simply pray the extra rakahs in pairs of two, as ordinary voluntary prayers, without adding a second Witr at the end. Some scholars note that if you do end up praying Tahajjud after an earlier Witr, you can choose to make your very last unit before Fajr a single rakah anyway to keep the night's total count odd, though this detail varies by school and is not required. If you are unsure which approach fits your practice, ask a qualified teacher, and do not let the uncertainty stop you from praying either way.
Muslims follow several respected schools of jurisprudence, and some details of Witr, including its ruling, its rakah count, and exactly where Qunut is placed, differ between them. All the approaches described in this guide are valid and practiced by sincere Muslims around the world. For a ruling on your specific situation, follow the guidance of qualified scholars or a trusted local teacher, ideally one connected to your own madhab.
How many rakahs is Witr?
Witr can be as short as a single rakah or as long as eleven, as long as the total stays odd. There is no single number that is required of everyone, and the flexibility here is one of the reasons Witr is so approachable for beginners. Here is the range you will encounter:
| Rakahs | Who tends to pray it | Notes |
|---|---|---|
| 1 | Anyone, especially beginners or on a short night | A complete, valid Witr on its own |
| 3 | The most common everyday practice | Prayed continuously with one salam, or as two plus one with two salams |
| 5, 7, or 9 | Those who pray longer Tahajjud sessions | Usually prayed in pairs of two, finishing on the odd rakah |
| 11 | A longer night prayer session, common in Ramadan | Prayed in pairs, closing with a single Witr rakah at the end |
Most people settle into either one rakah or three rakahs as their regular routine, and both are complete and sufficient. If your night is short or you are new to the habit, one rakah is a perfectly good place to start, and there is no shame in keeping it simple. As your routine grows, you can extend to three rakahs, and from there to longer sessions on nights when you have more time, such as during Ramadan.
Three rakahs of Witr can be prayed in two different, equally valid structures, and the one you use often comes down to which school of thought you follow or which method your local community teaches:
- Continuous three rakahs, one salam. You pray all three rakahs back to back with a single tashahhud sitting at the very end, similar in shape to Maghrib but without a middle tashahhud after the second rakah. This is the method most associated with the Hanafi school. Qunut is recited in the third rakah.
- Two rakahs, then a separate single rakah. You pray two rakahs as a complete unit with its own salam, exactly like a normal two-rakah prayer, then stand again and pray one more rakah by itself with its own opening and its own salam. This is the method commonly taught in the Shafii, Maliki, and Hanbali schools. Qunut is recited in that final single rakah.
Both structures deliver the same three-rakah Witr, and the difference is purely in how the rakahs are grouped and where the tashahhud sittings fall. Neither one is more correct than the other. Pick the method that matches how you were taught, or the one common in your community, and be consistent with it.
Learn every step at your own pace
Niyyara includes step-by-step worship guides, the full Quran with audio to help your recitation, prayer times, and the Qibla, all free and ad-free. Build your night prayer routine one step at a time.
How to pray Witr step by step: one rakah
A single rakah of Witr uses the exact same movements as any other rakah of salah, the same ones you already use in Fajr or any other prayer. If you already know how to pray, you already know almost everything you need for Witr. Here is the full sequence.
- Make the intention. Stand facing the Qibla and form the intention in your heart to pray Witr, one rakah, for the sake of Allah. The intention lives in the heart; there is no required spoken formula.
- Opening takbir. Raise your hands and say Allahu Akbar, then place your right hand over your left, and begin your standing recitation.
- Recite Al-Fatihah, then a surah. Recite Surah Al-Fatihah as you would in any rakah, then recite a short surah or passage from the Quran after it, just as you would in the first rakah of any other prayer.
- Qunut, before or after ruku. Before bowing, some people recite the takbir and then Dua al-Qunut while still standing, with hands raised, following the Hanafi approach. Others bow into ruku first, rise back up saying Sami Allahu liman hamidah and Rabbana wa lakal hamd, and recite Qunut standing upright after the bow, following the approach common among the Shafii and Hanbali schools. Both placements are explained fully in the Qunut section below; use whichever matches the method you were taught.
- Ruku. Bow, resting your hands on your knees with your back level, and say Subhana Rabbiyal Adhim, glory to my Lord the Most Great, commonly three times.
- Rise from the bow. Stand back up saying Sami Allahu liman hamidah, then Rabbana wa lakal hamd, if you have not already recited Qunut at this point.
- Sujood, twice. Prostrate saying Allahu Akbar, recite Subhana Rabbiyal Ala, glory to my Lord the Most High, three times, sit briefly saying Rabbighfir li, then prostrate a second time exactly as the first.
- Sit for the tashahhud. Since this is a single, complete rakah, sit for the full and final tashahhud, including the testimony of faith and the salawat, the sending of blessings on the Prophet, just as you would at the end of any prayer.
- Close with salam. Turn your head to the right saying As-salamu alaykum wa rahmatullah, then to the left saying the same. Witr is now complete.
That is the entire prayer. It takes only a few minutes, and it is one of the simplest ways to add a lasting act of worship to your night. If you are new to praying voluntary night prayers, a single rakah of Witr right after Isha is an excellent place to begin.
How to pray Witr step by step: three rakahs
Once a single rakah feels comfortable, three rakahs is the natural next step, and it is the most widely practiced form of Witr worldwide. Below are both accepted structures, so you can follow whichever one matches your community.
Method one: continuous three rakahs with one salam
- Make the intention for Witr, three rakahs, and begin with the opening takbir.
- First rakah. Recite Al-Fatihah and a short surah, then complete ruku and the two prostrations as usual, just like the first rakah of any prayer.
- Second rakah. Stand, recite Al-Fatihah and a short surah, complete ruku and the two prostrations, then sit for a brief tashahhud, reciting the testimony of faith but not the salawat, since the prayer is not ending yet.
- Stand for the third rakah without a closing salam, and recite Al-Fatihah and a short surah again.
- Recite Qunut. After finishing the recitation, say the takbir, raise your hands, and recite Dua al-Qunut while still standing, before bowing into ruku. This placement, Qunut before ruku in the third rakah, is the hallmark of this method.
- Complete ruku and the two prostrations as usual.
- Sit for the final tashahhud, including the testimony of faith and the salawat upon the Prophet, then close with salam to the right and the left.
Method two: two rakahs, then a separate single rakah
- Pray two complete rakahs exactly as you would pray any two-rakah prayer such as Fajr, including the final tashahhud with the salawat, and close with salam. This finishes as its own separate unit.
- Stand again for a new, single rakah. Make the intention for this final rakah of Witr, say the opening takbir, and recite Al-Fatihah followed by a short surah.
- Recite Qunut after rising from ruku. Bow into ruku and rise as usual, saying Sami Allahu liman hamidah and Rabbana wa lakal hamd. While still standing upright after the bow, recite Dua al-Qunut. This placement, Qunut after ruku, is the hallmark of this method.
- Complete the two prostrations, sit for the tashahhud with the testimony of faith and the salawat, and close with salam.
Notice that the two methods differ mainly in structure and in where Qunut falls, not in the underlying substance of the prayer. Choose the one that matches how you learned to pray, stay consistent, and do not feel that you need to switch back and forth. Consistency in one valid method is better than confusion between two.
Witr at a glance
- Prayed after Isha and before true dawn, never before Isha and never after Fajr begins.
- Always an odd number of rakahs: commonly one or three, sometimes more.
- Includes Dua al-Qunut in the last rakah, before or after ruku depending on the method.
- Prayed only once per night, even if you pray more voluntary rakahs afterward.
- Closes with the same tashahhud, salawat, and salam as any other prayer.
Dua al-Qunut: what it is and where it is said
Qunut refers to a short standing supplication recited within the last rakah of Witr. It is one of the features that sets Witr apart from an ordinary prayer, giving it a personal, pleading quality on top of the usual structure of standing, bowing, and prostrating. Reciting it is part of the established practice of Witr, though the exact ruling on whether it is required in every single Witr prayer, and precisely where it goes, is one of the points where the schools of thought differ, which we will cover in the next section.
The best-known text of Qunut is the supplication the Prophet Muhammad, peace be upon him, taught to his grandson Hasan ibn Ali to recite in Witr. It is recorded in the hadith collections of Abu Dawud, Tirmidhi, and an-Nasai. In transliteration, it reads:
Allahumma ihdini feeman hadayt, wa aafini feeman aafayt, wa tawallani feeman tawallayt, wa baarik lee feema atayt, wa qini sharra ma qadayt, fa innaka taqdee wa la yuqda alayk, wa innahu la yadhillu man walayt, tabarakta Rabbana wa taalayt.
Its meaning is: "O Allah, guide me among those You have guided, pardon me among those You have pardoned, take care of me among those You have taken care of, bless me in what You have given me, and protect me from the evil You have decreed, for verily You decree and none decrees over You, and whoever You befriend is never humiliated. Blessed are You, our Lord, and Exalted are You."
This is short enough to memorize within a few nights of practice, a line or two at a time, and it is widely taught as the standard Qunut across many communities. As for where it goes, you have two well-known placements, both explained in the step-by-step sections above:
- Before ruku, in the third rakah. After finishing your recitation of Al-Fatihah and the short surah, you say the takbir, raise your hands, and recite Qunut while still standing, then bow into ruku afterward. This is the placement followed in the Hanafi school, and it is recited in every Witr prayer as part of the standard structure.
- After ruku, in the final rakah. You bow, rise back up saying the usual words of rising, and recite Qunut while standing upright after the bow, before going down into prostration. This is the placement followed in the Shafii and Hanbali schools, closer to how Qunut is sometimes recited in Fajr in the Shafii school.
Beyond the fixed text taught to Hasan ibn Ali, it is also common and encouraged to add your own personal supplications within Qunut, asking Allah for whatever is on your heart, in Arabic if you are able or, according to many scholars, in your own language if that is what allows you to pray with real presence and sincerity. Some traditions also add a short passage sending blessings on the Prophet Muhammad, peace be upon him, at the end of Qunut. Practices here vary by community and school, so if you want to learn a fuller or a different Qunut wording, ask a qualified teacher connected to your madhab, and treat the version above as a solid, well-attested starting point rather than the only correct wording in existence.
Hands are typically raised, palms up, during Qunut, similar to how hands are raised in general supplication outside the prayer, and many people say Ameen quietly to themselves as they recite it, especially if they are following an imam who is reciting Qunut aloud. If you are praying alone and still learning the words, it is completely fine to recite it quietly while you build familiarity, or even to follow along by reading it during your early practice, since sincerity and gradual learning matter far more than a flawless first attempt.
Learn Qunut and every step with confidence
Niyyara's worship guides walk you through Witr, Tahajjud, and the rest of the night prayers with clear transliteration and meaning, alongside the full Quran with audio to help your recitation. Free, private, and ad-free.
How the schools of thought differ on Witr
Islam has four major schools of jurisprudence, the Hanafi, Maliki, Shafii, and Hanbali madhabs, and while they agree on the vast majority of how salah is prayed, Witr is one of the areas where their conclusions genuinely differ, honestly and respectably, based on how each school weighed the available evidence. Being upfront about these differences is more useful than pretending there is only one way, because you are likely to encounter more than one of these practices depending on where you live, which mosque you attend, or which teacher you learn from.
Is Witr obligatory? The Hanafi school holds that Witr is wajib, an obligation just below fard, based in part on hadith describing Witr as a duty upon every Muslim. The Maliki, Shafii, and Hanbali schools hold that Witr is sunnah muakkadah, a strongly confirmed sunnah that the Prophet himself never left, but not sinful to occasionally miss. In daily life, this difference matters less than it might sound, because scholars from every school agree that Witr should be prayed consistently and should not be treated as optional or skippable out of laziness.
How is three-rakah Witr structured? As covered above, the Hanafi school teaches three continuous rakahs with a single salam at the end, resembling the shape of Maghrib but without a tashahhud that ends the prayer in the middle. The Shafii, Maliki, and Hanbali schools generally teach two rakahs finished with their own salam, followed by a separate single rakah. The Maliki school in particular is well known for treating the final single rakah as somewhat distinct in nature from the earlier even-numbered rakahs (called shafa), even though together they form one Witr.
Where is Qunut recited, and how often? The Hanafi school recites Qunut in every Witr prayer, every night of the year, placed before ruku in the final rakah. The Shafii school generally recites Qunut after ruku, and while it is a regular feature of Witr for many Shafii-following communities, some traditions within the school associate a fuller nightly Qunut particularly with the second half of Ramadan, alongside its own separate use of Qunut in Fajr. The Maliki and Hanbali schools generally do not treat Qunut as a fixed, ever-present feature of nightly Witr in the same automatic way, and some Hanbali teaching leaves reciting it as optional rather than a fixed part of the structure. Because these details are genuinely intricate and vary by teacher and local practice even within the same school, this is exactly the kind of question worth asking a qualified scholar or imam near you, rather than trying to resolve it from a single article.
None of these differences make one community's Witr less valid than another's. They reflect careful, sincere scholarship working from the same body of hadith and reaching different conclusions on secondary details, which is a long-standing and respected feature of Islamic jurisprudence. The right approach for you is simple: learn the method taught in your own community or madhab, follow it consistently, and if you are ever unsure about a specific ruling, ask someone qualified to teach you rather than mixing pieces of different methods without guidance.
Witr during Ramadan and with Tarawih
Witr takes on a especially visible role during Ramadan, when many mosques pray it in congregation immediately after Tarawih, the extra night prayers of the month. In many communities, the imam leads a longer Qunut during Witr in the second half of Ramadan, often including supplications for the wider Muslim community, forgiveness, and guidance, and worshippers raise their hands and say Ameen together. This is a beautiful, communal version of the same Qunut described earlier, simply extended and led aloud.
Outside of the mosque, Ramadan is also a natural time to build or deepen a personal Witr habit, since many people are already praying extra night prayers and staying up later for suhoor. If you normally pray a single rakah of Witr the rest of the year, Ramadan is a good season to try extending to three, or to experiment with waking earlier before suhoor to pray Witr as the very last thing before the fasting day begins. There is no requirement to change your routine for Ramadan specifically. Whatever consistent practice serves you well the rest of the year remains valid during the month too.
Common mistakes and practical tips
A few small missteps come up again and again for people learning Witr, and knowing them ahead of time helps you sidestep unnecessary confusion.
- Praying Witr twice in one night. Remember that Witr is prayed only once per night. If you already prayed it after Isha and later wake for more voluntary prayers, pray those extra rakahs in pairs of two without repeating Witr at the end.
- Mixing the structure of the two three-rakah methods. Do not recite the tashahhud after the second rakah and then also close with a separate salam before the third rakah, which blends the two valid methods into something neither one actually teaches. Pick one full method, either continuous three rakahs with one salam, or two rakahs plus a separate rakah, and follow it completely.
- Skipping Witr because you are unsure of Qunut. You do not need to have Qunut memorized perfectly to pray Witr. If you have not learned it yet, you can still complete a valid Witr prayer and add Qunut once you have practiced the words, or recite whatever short supplication you already know while you are learning.
- Delaying Witr until it gets missed. If you are not confident you will wake up later, the safer and fully valid choice is to pray Witr right after Isha. Waiting for an ideal moment that may not come is how the prayer gets missed altogether.
- Rushing the final rakah. Because Witr often comes at the end of a long day or the tail end of the night, it is easy to rush through it. Slow down, especially through Qunut, since the standing supplication is one of the most personal moments in the prayer.
The overall theme is the same one that applies to salah in general: pick a valid, complete method, stay consistent, move unhurried through each part, and ask a knowledgeable teacher whenever a genuine question comes up rather than guessing.
Building a lasting Witr habit
Turning Witr into something you pray every single night, rather than something you remember occasionally, comes down to a handful of practical habits rather than willpower alone.
Attach it to something you already do. The easiest way to build any habit is to tie it to an existing routine. Since Witr's window opens right after Isha, praying it immediately after your Isha sunnah, before you settle in for the evening, means you never have to remember it separately later at night.
Start with one rakah. If three rakahs or a longer Tahajjud and Witr combination feels like too much some nights, one rakah is a complete, valid Witr on its own. A consistent single rakah every night is far better than an ambitious routine you keep abandoning.
Learn Qunut a line at a time. Rather than trying to memorize the whole supplication in one sitting, learn the first phrase this week, add the next phrase once the first feels natural, and build it up gradually. Within a couple of weeks of steady practice, most people have it comfortably memorized.
Use a reliable reminder for the window. Because Witr's time closes when Fajr begins, a dependable prayer time source protects you from accidentally letting the window close while you sleep through it, especially on nights when you plan to delay Witr until after Tahajjud. Set a gentle alarm timed to your local Fajr, not a generic clock time, since the exact hour shifts throughout the year.
Be forgiving of missed nights. Everyone misses a night here and there, whether from illness, travel, or simply falling asleep too quickly. A missed Witr does not undo the value of every night you did pray it. Return to the habit the next night rather than treating one slip as a reason to stop altogether.
Witr rewards patience more than intensity. A short, sincere prayer offered consistently, night after night, builds something lasting in a way that an occasional long or elaborate prayer never quite matches. Start tonight, right after Isha, with whatever you already know, and let the rest grow from there.
How Niyyara helps you pray Witr on time
Learning the steps of Witr is only part of the picture. The other part is knowing exactly when Isha has begun, when true dawn will arrive, and having a gentle nudge so the prayer does not get lost in a busy or sleepy evening. That is exactly what Niyyara is built to help with, at no cost to you.
Niyyara is a free, private, ad-free companion for a practicing Muslim. It calculates accurate prayer times for your exact location and the current date, so you know precisely when Isha opens and how much time remains before Fajr closes the window for Witr. It can sound the azan when each time enters, which is often the nudge that turns a good intention into a kept habit. Alongside prayer times, Niyyara includes an accurate Qibla compass, the full Quran with audio to help you learn Qunut and your recitation by ear, a collection of everyday duas, the 99 names of Allah, a tasbih for remembrance, the Islamic calendar, and a worship tracker so you can watch your Witr streak grow night after night.
Because Niyyara is completely free, with no subscriptions and no ads, there is nothing standing between you and a steady night prayer routine. Download it, set your location, and let it hold the timing so you can focus on the prayer itself.
Praying Witr is a small, quiet way to end the day facing your Creator, and it takes only a few minutes once the steps are familiar. You now have the full picture: what Witr is, when to pray it, how many rakahs to choose, the words of Qunut, how the schools of thought differ, and a simple path to making it a nightly habit. Pray it tonight, right after Isha, and let it become the last thing you do before you rest.
Frequently asked questions
What is Witr prayer and is it obligatory?
Witr is an odd-numbered prayer that closes out the night prayers, prayed after Isha and before Fajr. The Hanafi school holds that Witr is wajib, a step below obligatory but still binding, while the Maliki, Shafii, and Hanbali schools hold that it is sunnah muakkadah, a strongly emphasized practice of the Prophet Muhammad, peace be upon him, that is not sinful to miss but should not be abandoned. Whichever view you follow, Witr was prayed by the Prophet every single night, and it is worth building into your routine.
When is the best time to pray Witr?
The time for Witr begins after you have prayed Isha and lasts until true dawn, when the time for Fajr enters. If you are confident you will wake in the last third of the night, it is better to delay Witr until after Tahajjud, since prayer at that hour is especially blessed. If you are not confident you will wake up, it is better to pray Witr right after Isha, before you sleep, so that it is not missed. The Prophet advised making Witr the last prayer of the night.
How many rakahs is Witr?
Witr can be prayed as one rakah, three rakahs, or in odd numbers up to eleven, depending on the method you follow. A single rakah is valid on its own. Three rakahs can be prayed continuously with one final tashahhud and one salam, which is the common Hanafi method, or as two rakahs finished with salam followed by a separate single rakah, which is common among the Shafii, Maliki, and Hanbali schools. Any odd number is acceptable, and most people settle on one or three rakahs for daily practice.
What do I say in Qunut during Witr?
The most well-known Dua al-Qunut is the one the Prophet taught to his grandson Hasan ibn Ali, recorded in the collections of Abu Dawud, Tirmidhi, and an-Nasai. In transliteration it reads: Allahumma ihdini feeman hadayt, wa aafini feeman aafayt, wa tawallani feeman tawallayt, wa baarik lee feema atayt, wa qini sharra ma qadayt, fa innaka taqdee wa la yuqda alayk, wa innahu la yadhillu man walayt, tabarakta Rabbana wa taalayt. It means: O Allah, guide me among those You have guided, pardon me among those You have pardoned, take care of me among those You have taken care of, bless me in what You have given, and protect me from the evil You have decreed, for You decree and none decrees over You, and whoever You befriend is never humiliated, blessed are You, our Lord, and exalted are You.
Can I pray Witr right after Isha instead of waiting?
Yes. Praying Witr right after Isha, before you go to sleep, is completely valid and is exactly what the Prophet recommended for anyone who is not sure they will wake later in the night. It is better than skipping Witr altogether out of fear of oversleeping. If you do wake later for Tahajjud on a night you already prayed Witr, you simply pray your extra night prayers in pairs of two without repeating Witr, since a person prays only one Witr in a night.
What should I do if I miss Witr or forget it?
If you fall asleep before praying Witr or forget it during the night, the general guidance is to pray it the next day once you remember, though scholars differ on the exact details of making up a missed Witr and whether it should be prayed as an even or odd number once the night has passed. Because this touches on fiqh rulings that vary by school, ask a qualified teacher for guidance on your specific situation. For everyday life, the simple fix is to build a reliable reminder so Witr rarely gets missed in the first place.
Pray Witr with confidence, every night
Niyyara gives you accurate prayer times, the azan, an exact Qibla, the full Quran with audio, and step-by-step guides, all free and ad-free. Make Witr the last thing you do before you rest.