Most of us end the day the same way. We lie in bed, the phone lights the ceiling, and the day replays itself: the email we should have answered, the thing we said at lunch, the list for tomorrow that has already started to grow. Then we fall asleep mid-thought, as if the day had no ending, only a power cut.

There is a prayer meant to prevent that. It takes about two minutes and is the last thing the Prophet ﷺ told Muslims to do before the night closes. Many people have never prayed it on purpose.

It's called Witr.

What Witr actually is

Witr means "odd," as in an odd number of rakats. It is prayed after Isha and before Fajr begins, and it is meant to be the last prayer of your night. The Prophet ﷺ said: "Make the last of your prayer at night Witr" (Bukhari and Muslim).

The tradition ties it to something larger. A hadith reported by Abu Dawud and al-Tirmidhi says: "Allah is Witr (One), and He loves the Witr." The number is a small echo of that. Your day of two-by-two, four-by-four prayers ends on a single, unpaired unit.

How many rakats?

Scholars differ here, and the differences are worth knowing so you don't think you're doing it wrong when you meet someone who does it differently.

The minimum, in the majority view, is one rakat. The Prophet ﷺ said that the night prayer is two by two, and if one fears the approach of Fajr, they pray one rakat to make what they prayed odd (Bukhari and Muslim). From there, the reported options run through 3, 5, 7, 9, and 11.

The common ways to pray three:

  • Two rakats, a salam, then one rakat. This is the approach of most schools. You pray two rakats as if for a normal two-rakat prayer, end with the salam, then stand and pray a single rakat.
  • Three rakats together with one salam. This is the Hanafi method. You sit after the second rakat for the tashahhud only, stand for the third, and finish with the salam at the end.

On status, the Hanafi school considers Witr wajib, a level just below fard, while the majority consider it a strongly emphasised sunnah (sunnah mu'akkadah). If you follow a particular school, follow its method. If you don't have a school yet, ask a teacher you trust. Either way, a few things hold across the board: it comes after Isha, it's odd, and it comes last.

When to pray it

The window opens once Isha is prayed and lasts until Fajr enters. That is longer than people think. You can pray Witr right after Isha, or before you sleep, or in the last part of the night if you wake for tahajjud.

A hadith reported in Muslim says that whoever fears he won't get up at the end of the night should pray Witr at the start of it, and whoever is confident he will wake should pray it at the end, because the prayer at the end of the night is witnessed.

That makes the practical question easy to answer. If you're someone who reliably wakes before Fajr, you can delay it. If you aren't, and most of us aren't, pray it before bed and don't make it a negotiation.

Why it works as a bedtime ritual

Here is where the psychology helps, and I want to be careful not to overstate it, because this is a worship, not a sleep hack. But the two overlap in ways worth noticing.

People who can't sleep are very often not tired of body but busy of mind. Researchers have studied one version of this directly. In a 2018 study from Baylor University led by Michael Scullin, participants who spent five minutes writing a specific to-do list for the coming days fell asleep faster than those who wrote about what they had already accomplished. The finding suggests that off-loading unfinished business onto something external helps the brain stop holding on to it.

The broader principle is closure. The mind keeps open loops alive, and it keeps them most vividly when you stop trying to distract yourself. A ritual with a clear ending, done in the same way each night, is a signal that the day's work is now over. Behavioural scientists who work on sleep often recommend a consistent pre-sleep routine for exactly this reason: repetition turns a sequence of steps into a cue.

Witr fits that shape neatly. It is short, it's the same every night, and it has a definite end. The last thing you do before sleep is stand, bow, prostrate, ask, and say salam. Nothing is left hanging.

There is also a spiritual dimension that no study will capture. You hand the day back. Whatever you did or didn't finish, you have said Allahu Akbar over it and put your forehead on the ground. Your last act of the day is not a screen.

The qunut: a place to put what's heavy

In the final rakat of Witr, many people recite dua al-qunut before or after the ruku, depending on their school. The Prophet ﷺ taught his grandson al-Hasan a short dua for it, which begins Allahumma ihdini fiman hadayt ("O Allah, guide me among those You have guided"), reported in Abu Dawud and al-Tirmidhi.

If you haven't memorised it yet, that's fine. Many people begin with just the first Fatiha and a short surah, and add the qunut as they learn. You can also make dua in your own words in sujood, which is a moment the Prophet ﷺ said is especially close (Muslim).

What matters here is that Witr gives your worries an address. You do not have to lie in bed composing them.

Why people skip it (and why that's fixable)

The usual reasons are practical. By Isha you're tired. Witr seems optional. The bed is right there. And since nobody sees you skip it, nothing pushes back.

Three small structural fixes help more than motivation does.

  1. Attach it to something that already happens. Pray Witr immediately after your Isha sunnah, while you're already in wudu and already on the mat. This is the logic behind habit stacking: the previous action is the cue. The harder version is "I'll pray Witr when I'm about to sleep", which depends on your energy at the worst possible moment.
  2. Start with one rakat. One rakat is a legitimate Witr in the majority view. A habit that takes ninety seconds survives a bad day. A habit that takes ten minutes doesn't.
  3. Decide the number in advance. Choose one, three, or five, and keep it. Deciding each night how many to pray is where the habit dies.

Your next moves

  • Check your Isha-to-Fajr window today. Look up tonight's Isha time and tomorrow's Fajr time for your location, so you know exactly how long your Witr window is.
  • Pick your number and your method. Decide on one, three, or five rakats. If you follow a school, use its method (the Hanafi single-salam three, or the two-then-one). If you're unsure, ask your imam or a teacher this week.
  • Learn one short qunut. Take the Prophetic dua, Allahumma ihdini fiman hadayt, and read its translation once, so you know what you're asking.
  • Stack it onto Isha tonight. When you finish your Isha sunnah, don't get up. Stay on the mat, make wudu fresh if you've broken it, and pray Witr before you touch your phone.
  • Write tomorrow's top three before you pray. Two minutes, on paper. Then pray, and leave the list where it is.

One more thing about endings

We spend a lot of energy on how to start the day: the early alarm, the morning routine, the first prayer. We spend very little on how to end it, though the end is where a lot of our restlessness lives.

That's where Athan is useful to me. It shows when Isha begins and when Fajr is coming, so you can see exactly how much of the night remains for Witr, with no ads and nothing tracking you while you do it. If you'd like a quiet way to know your window, you can find it at https://athan.lumenlabs.works. But the prayer itself needs nothing except a clean place to stand and two minutes you were going to spend on your phone anyway.