Quick answer

Night-time overthinking is common, and it is not a sign of weak faith. Worry gets louder at night because there is nothing else to attend to and nothing can be acted on until morning. What helps is two-sided: a wind-down drawn from the Sunnah (wudu, lying on the right side, the bedtime supplication and the last two verses of Al-Baqarah), and practical steps such as writing worries down, postponing decisions until daylight, and getting up rather than lying awake for long stretches.

The lights are off and the house is quiet. That is when it starts: the conversation you replay, the email you have not answered, the test result that has not come, what you should have said, what might happen next month. Each thought brings another. An hour later you are more awake than when you lay down, and tomorrow already feels heavier.

If this is familiar, you are not alone, and it is not a verdict on your iman. It is what a mind tends to do when the day stops and the questions do not.

Why does overthinking get worse at night?

Three things come together after dark.

Underneath the circling there is usually a silent argument: if I keep thinking about this, I will be prepared; if I stop, something bad will happen. In cognitive therapy that is a belief about worry itself: that it protects you. Test it honestly. Has any midnight hour of going over the same thing actually changed the outcome? Mostly it changes only how you feel the next day.

What does Islam say about worry at night?

The Qur’an describes sleep as a mercy: something Allah made for rest (An-Naba’ 78:9). Rest is not laziness or neglect of duty. It is part of how you were made.

And the Qur’an speaks directly to the burden worry tries to carry alone.

Meaning in brief

Whoever puts their trust in Allah, He is sufficient for them; Allah will accomplish what He intends, and He has set a measure for everything.

At-Talaq 65:3

Tawakkul does not mean you stop caring or stop planning. It means you do your part in its proper time and leave the outcome with Allah. At night, “your part” is usually finished for the day. What remains is the outcome, and that was never yours to carry into bed. For more on that balance, see tawakkul and anxiety.

There is also Prophetic guidance for the replaying itself. The Prophet ﷺ taught that when something has happened, a person should not say “if only I had done this, it would have been different”, but “Allah decreed it, and what He willed He did”, because “if only” opens the way for Shaytan’s work. He paired this with striving for what benefits you and not giving in to helplessness (recorded by Muslim; Riyad as-Salihin 100). Learning from the day is useful. Re-living it with “if only” is the loop.

A wind-down routine from the Sunnah

The Sunnah gives the end of the day a shape, and a predictable shape is exactly what a racing mind lacks.

Meaning in brief

The Prophet ﷺ told al-Bara’ ibn ‘Azib that when he went to bed he should make wudu as for prayer, lie on his right side, and say a supplication handing his self, his affairs and his reliance over to Allah, in hope and in awe of Him. The supplication begins Allāhumma aslamtu wajhī ilayk.

Sahih al-Bukhari 247

Meaning in brief

Whoever recites the last two verses of Surat al-Baqarah at night, they will be sufficient for him.

Reported by Abu Mas‘ud, may Allah be pleased with him. Sahih al-Bukhari 5009

Notice what the bedtime supplication does psychologically as well as spiritually. It is an act of handing over: you name what you are carrying and you place it with Allah, deliberately, before sleep. It also follows a pattern the Prophet ﷺ kept: he disliked conversation after ‘Isha (Sahih al-Bukhari 568), so the night was not used to open new matters.

A modern routine that keeps that spirit might be:

  1. Close the day an hour before bed. Put the phone away from the bed. Messages, news and scrolling are the modern form of opening new matters at night.
  2. Write the “tomorrow list”. Two minutes on paper: what is on your mind, and for each item, the first step and when you will take it. If there is no step, write “not mine to solve tonight”. The point is to move it out of your head and onto a page that will still be there in the morning.
  3. Make wudu. It marks the change from day to night.
  4. Recite the last two verses of Al-Baqarah and the bedtime supplication, lying on your right side.
  5. If a worry returns, point to the list. “It is written down. I will deal with it at the time I chose.” You are not suppressing the thought, which tends to backfire. You are postponing it.

What should I do if I am lying awake overthinking?

Lying in bed fighting your thoughts teaches the body that bed is a place for fighting. Sleep specialists commonly advise against staying in bed for long stretches awake.

When it is more than a bad night: if poor sleep goes on for weeks, if worry fills most of your days as well as your nights, or if night-time thoughts include hopelessness or harming yourself, speak to a doctor or a mental-health professional. Persistent sleep problems and anxiety feed each other, and both can be treated. If you might act on thoughts of harming yourself, contact emergency services or a crisis line now. See when self-help is not enough.
If the night thoughts are religious doubts or checking: repeatedly going over whether a prayer counted, whether you committed disbelief or whether you are forgiven, and needing certainty before you can sleep, can be part of waswas or OCD. More checking tends to strengthen it. See waswas and OCD.

Two directions from here

If you keep the belief that worrying is a form of preparation, every night becomes a shift you have to work. The thinking does not solve the problems, but it takes the sleep you need to face them.

If you replace it, the night gets its proper job back. You do your part in daylight, write down what is left, hand it over before sleep in words the Prophet ﷺ taught, and let the night be for rest, or for prayer if you are awake.

Tonight, inside: when a worry arrives in bed, say “written down, handed over”. Tonight, outside: write the tomorrow list before you make wudu.

The worry will still be there in the morning. So will your strength to deal with it.

Where to go next

For the wider picture of worry, and a daytime “worry period” to give it a container, see overthinking and worry in Islam. For a sourced selection of supplications for anxiety and sadness, see du’a for anxiety and sadness.


Frequently asked questions

Why do I overthink at night?

At night there is nothing else competing for attention, nothing can be acted on until morning, and a tired mind makes problems look bigger and solutions smaller. Many people also hold an unspoken belief that worrying prepares them or keeps them safe, which keeps the thinking going even when it changes nothing.

Is overthinking at night a sign of weak iman?

No. Night-time worry is a common human experience and is not a measure of faith. Islam offers ways to meet it, such as the bedtime supplication, reliance on Allah (At-Talaq 65:3) and treating sleep as a mercy (An-Naba’ 78:9), but struggling with it is not a verdict on your faith.

What should I recite before sleeping to stop overthinking?

Authentic bedtime practices include making wudu, lying on the right side and saying the supplication beginning “Allahumma aslamtu wajhi ilayk” (Sahih al-Bukhari 247), and reciting the last two verses of Surat al-Baqarah, which the Prophet ﷺ said suffice the one who recites them at night (Sahih al-Bukhari 5009). These are acts of worship and handing over, not techniques guaranteed to stop thoughts.

What do I do if I cannot sleep because of overthinking?

If you have been lying awake for what feels like about twenty minutes, get up, go somewhere dim and quiet, and do something calm until you feel sleepy. If it is the last third of the night, you might pray two rak‘ahs and make du‘a. Write worries down for the morning and avoid making big decisions at night. If sleep problems go on for weeks, speak to a doctor.

How do I stop replaying conversations at night?

Separate learning from re-living. If there is something to learn or repair, write one line: what you will do and when. Then stop. The Prophet ﷺ taught people not to dwell on “if only I had done this” but to accept what Allah decreed and strive for what benefits them (recorded by Muslim). Replaying the same scene without a new step is the loop, not reflection.

Written: October 30, 2026 by Ibnu Nahid. MuslimCBT’s review process is described in our methodology. No external clinical or scholarly review has been completed for this page.

Ibnu Nahid — Founder & Researcher, MuslimCBT

MuslimCBT is an independent educational project exploring how established CBT-informed self-help tools can be explained in a faith-consistent Islamic context. Ibnu Nahid is not a licensed psychologist, psychiatrist, psychotherapist, counsellor, medical doctor or Islamic scholar.

Important: This article is educational. It does not provide diagnosis, therapy, medical treatment or religious rulings. Severe symptoms, significant impairment, suicidal thoughts, self-harm risk or a mental-health crisis need qualified professional or emergency support. For a ruling on your own situation, ask a qualified scholar. Read our methodology and evidence boundaries.