Dua for Sleep: Authentic Duas, the Sunnah Night Routine and Proven Steps for When You Can't Sleep
Evidence-Based Information
Based on scientific research
Not a Substitute for
Professional Care
If you are experiencing severe distress or thoughts of self-harm, seek immediate professional support.
Dua for Sleep: Authentic Duas, the Sunnah Night Routine and Proven Steps for When You Can't Sleep
Quick Answer — the dua taught specifically for when you cannot sleep:
اللَّهُمَّ غَارَتِ النُّجُومُ وَهَدَأَتِ الْعُيُونُ وَأَنْتَ حَيٌّ قَيُّومٌ، لَا تَأْخُذُكَ سِنَةٌ وَلَا نَوْمٌ، يَا حَيُّ يَا قَيُّومُ، أَهْدِئْ لَيْلِي وَأَنِمْ عَيْنِي
Transliteration: Allahumma gharatin-nujum wa hada'atil-'uyun, wa Anta Hayyun Qayyum, la ta'khudhuka sinatun wa la nawm. Ya Hayyu ya Qayyum, ahdi' layli wa anim 'ayni.
Translation: "O Allah, the stars have set and the eyes have become calm, and You are the Ever-Living, the Sustainer of all. Neither drowsiness nor sleep overtakes You. O Ever-Living, O Sustainer, calm my night and make my eyes sleep."
This is the dua the Prophet ﷺ taught Zayd ibn Thabit (RA) when he complained that he could not sleep (reported by Ibn al-Sunni and collected in Imam al-Nawawi's Al-Adhkar). One honest note, because accuracy matters: some scholars consider this report's chain of narration weak, while its wording and meaning are sound, beautiful, and widely taught. We include the grading openly rather than hiding it — you can recite it with a clear heart.
It is past midnight. The house is quiet, everyone else is asleep, and your mind is doing the opposite of resting — replaying the day, rehearsing tomorrow. If that is you right now, begin with the dua above. Then let this page walk you through the rest: the duas for every sleep situation, the Prophet's ﷺ night routine as a timed plan, why your brain will not switch off, and the proven clinical steps (CBT-I) that sit comfortably alongside the Sunnah.
One quick check: if poor sleep has become your normal, take two minutes with our free Sleep Quality Check to see whether this is a rough week or a pattern worth treating.
Scope note: This article offers spiritual support and evidence-based self-help. It is not a diagnosis or a cure, and it does not replace a doctor or psychologist. If sleeplessness ever comes with thoughts of harming yourself, go to nafsio.com/crisis-support now and reach out to a trusted person.
Duas for Sleep, by Situation
Do not try to memorise everything tonight. Pick the section that matches your situation, use the transliteration if Arabic is difficult, and let the meaning settle.
1. Before sleeping — the nightly protection
Dua when you lie down (Sahih al-Bukhari):
اللَّهُمَّ بِاسْمِكَ أَمُوتُ وَأَحْيَا
Transliteration: Allahumma bismika amutu wa ahya.
Translation: "O Allah, in Your name I die and I live."
When to use: Every night, as you settle into bed — a short surrender of the night to Allah.
Ayat al-Kursi (Quran 2:255; Sahih al-Bukhari)
The Prophet ﷺ confirmed that whoever recites it at night is protected until morning:
اللَّهُ لَا إِلَٰهَ إِلَّا هُوَ الْحَيُّ الْقَيُّومُ ۚ لَا تَأْخُذُهُ سِنَةٌ وَلَا نَوْمٌ ۚ لَّهُ مَا فِي السَّمَاوَاتِ وَمَا فِي الْأَرْضِ ۗ مَن ذَا الَّذِي يَشْفَعُ عِندَهُ إِلَّا بِإِذْنِهِ ۚ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْ ۖ وَلَا يُحِيطُونَ بِشَيْءٍ مِّنْ عِلْمِهِ إِلَّا بِمَا شَاءَ ۚ وَسِعَ كُرْسِيُّهُ السَّمَاوَاتِ وَالْأَرْضَ ۖ وَلَا يَئُودُهُ حِفْظُهُمَا ۚ وَهُوَ الْعَلِيُّ الْعَظِيمُ
Translation (summary meaning): "Allah — there is no god but He, the Ever-Living, the Sustainer of all. Neither drowsiness nor sleep overtakes Him… His Kursi extends over the heavens and the earth, and preserving them does not tire Him."
When to use: Once, after getting into bed. Notice the theme: Allah never sleeps, so you safely can.
The last two verses of Surah al-Baqarah (Quran 2:285–286; Sahih al-Bukhari & Sahih Muslim)
"Whoever recites the last two verses of Surah al-Baqarah at night, they will suffice him": beginning Aamanar-rasulu bima unzila ilayhi mir-rabbihi wal-mu'minun… ("The Messenger believes in what was sent down to him from his Lord, and so do the believers…") and ending with the dua Rabbana la tu'akhidhna in nasina aw akhta'na… ("Our Lord, do not hold us to account if we forget or make a mistake…").
When to use: Once nightly, before or after Ayat al-Kursi.
The three Quls (Sahih al-Bukhari & Sahih Muslim):
Recite Surah al-Ikhlas (112), Surah al-Falaq (113) and Surah an-Nas (114), blowing lightly into your cupped hands after each set of three and wiping your hands over your body as far as they reach, beginning with the head and face — as the Prophet ﷺ did every night.
When to use: The closing act of your routine, in bed.
2. When you can't fall asleep
The dua of Zayd ibn Thabit (RA)
The Quick Answer dua at the top of this page, given to a companion whose specific complaint was inability to sleep.
When to use: In bed, lights off, after your nightly duas, repeated calmly without strain.
The refuge dua for fear and restlessness at night (At-Tirmidhi & Abu Dawud):
The Prophet ﷺ taught Khalid ibn al-Walid (RA), who complained of being startled and disturbed in his sleep:
أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ، وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ
Transliteration: A'udhu bikalimatillahit-tammati min ghadabihi wa 'iqabihi wa sharri 'ibadihi, wa min hamazatish-shayatini wa an yahdurun.
Translation: "I seek refuge in the perfect words of Allah from His anger and His punishment, from the evil of His servants, and from the whisperings of the devils and their coming near me."
Honesty note: This report's chain is described as mursal (interrupted) and graded weak by a number of scholars, though others have accepted it. Its meaning is fully in line with the Quran and Sunnah. We give you the grading so nothing here asks for blind trust.
3. When you wake in the night and can't get back to sleep
لَا إِلَهَ إِلَّا اللَّهُ الْوَاحِدُ الْقَهَّارُ، رَبُّ السَّمَاوَاتِ وَالْأَرْضِ وَمَا بَيْنَهُمَا الْعَزِيزُ الْغَفَّارُ
Transliteration: La ilaha illallahul-Wahidul-Qahhar, Rabbus-samawati wal-ardi wa ma baynahumal-'Azizul-Ghaffar.
Translation: "There is no god but Allah, the One, the Irresistible, Lord of the heavens and the earth and everything between them, the Almighty, the Great Forgiver."
Source: Reported by Ibn Hibban and included in Hisn al-Muslim among the duas for waking during the night.
When to use: Once, slowly, when you surface in the night — then roll onto your other side and let it be the last thought, not the start of new thinking.
4. After a nightmare or disturbing dream
The Prophet ﷺ gave a clear protocol (Sahih Muslim): a disturbing dream is from Shaytan, so whoever sees one should:
- Seek refuge in Allah from its evil.
- Spit lightly (a dry spit, no saliva) to the left three times.
- Turn over onto the other side.
- Not narrate the dream to anyone — "and it will not harm him."
When to use: Immediately, without analysing the dream. Analysis at 3am feeds the arousal you are trying to end; turning over is both a Sunnah act and a genuine pattern-break for the brain.
5. Upon waking
الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ
Transliteration: Alhamdulillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur.
Translation: "All praise is for Allah, who gave us life after He caused us to die (sleep), and to Him is the resurrection." (Sahih al-Bukhari)
When to use: The first words of the day — including after a bad night; it stops the day opening with a verdict on the night.
If anxiety itself keeps you awake, our companion guide to duas and dhikr for anxiety goes deeper.
The Sunnah Night Routine, as a Timed Plan
Lists of duas help; a sequence helps more. The brain learns cues — the same actions, in the same order, at the same time become a signal that the day is over. The Prophet's ﷺ night practice was, in modern language, a fixed wind-down ritual. Here it is as a timed plan, anchored to your bedtime:
| When | What to do | Why it works |
|---|---|---|
| 60 minutes before bed | Finish work, messages and news. Write tomorrow's tasks and tonight's worries on paper (see "scheduled worry" below). No caffeine now. Dim the bright lights. | Closes the day's open loops on paper instead of in bed; light and caffeine are the most common hidden sleep thieves across modern households. |
| 30 minutes before bed | Warm shower if you like, then perform wudu slowly. Change into sleep clothes. Prepare the bed: the Prophet ﷺ would shake out his bedding before lying down — straighten yours, and get in only when you intend to sleep. Phone charges outside reach, ideally outside the room. | Wudu is both worship and a physical cool-down cue; a prepared, sleep-only bed builds the bed = sleep association CBT-I relies on. |
| 10 minutes before bed | Lights low. Lie on your right side first. Recite, in order: Allahumma bismika amutu wa ahya, Ayat al-Kursi, the last two verses of al-Baqarah, the three Quls with blowing into cupped hands and wiping over the body. Add the tasbih of Fatimah (RA) — SubhanAllah 33, Alhamdulillah 33, Allahu Akbar 34 — given by the Prophet ﷺ to his daughter when she was exhausted. | The same order nightly becomes a conditioned sleep signal; slow recitation slows breathing — our Breathing Pacer helps you find that pace. |
| Lights off | If sleep comes, alhamdulillah. If not, the Zayd dua from the top of this page, repeated gently. No clock-checking, no phone. Still wide awake after roughly 20 minutes? Follow the 3am protocol below — even if it is only 11pm. | Struggling in bed trains the brain that bed = struggle; the protocol protects the association. |
Why You Still Can't Sleep: What Is Happening in Your Brain
If the duas are sincere and the routine is in place, why are you still awake? Because sleeplessness is rarely a dua problem. It is usually a wiring problem — and understanding it removes the guilt, which itself is part of the problem.
- The racing mind: Sleep requires the brain's alerting system to stand down. Worry does the opposite: every unfinished task is treated as a threat to monitor. Thoughts that feel manageable at noon feel enormous at midnight because fatigue lowers your defences and the quiet removes every distraction. Be clear on this: automatic night thoughts, including dark whisperings that arrive uninvited, are not a report card on your faith. Our guide to waswasah and OCD in Islam explains why you are not accountable for thoughts that simply cross the mind.
- Conditioned arousal — when the bed itself becomes the problem: This is the engine of most chronic insomnia. After enough nights of lying awake frustrated, the brain learns bed = the place where I lie awake frustrated, until just getting into bed triggers alertness. Sleepy on the sofa, wide awake on the pillow — that is ordinary learning, not weakness. And it can be unlearned, which is what CBT-I does.
- The physical saboteurs: Screen light in the last hour tells the brain it is still daytime. Caffeine's half-life is roughly five to six hours, so late afternoon tea or coffee is still half-present at midnight. Irregular wake times — 7am on workdays, 1pm on weekends — leave your body clock permanently jet-lagged. Long naps repay tonight's sleep pressure in advance. And underlying anxiety often sits beneath it all: treat the anxiety, and sleep usually follows.
The duas do their work best when the wiring is repaired too — which is what the next section does.
CBT-I: The Proven Steps That Work With the Routine, Not Against It
CBT-I (Cognitive Behavioural Therapy for Insomnia) is the first-line treatment recommended by sleep-medicine bodies worldwide for chronic insomnia — ahead of medication. NAFSIO's clinical guide to sleep and mental health covers the science in depth. Here is the practical core, mapped onto the Sunnah routine, because they fit naturally: the Sunnah routine is a wind-down ritual — CBT-I explains why it works, and adds the repair steps for a bed that has become a worry-place.
- Stimulus control — make the bed mean sleep again: Use the bed for sleep (and marital intimacy) only — no working, scrolling, studying or worrying in it. Go to bed when sleepy, not merely when the clock says so. Awake for roughly 20 minutes and clearly not drifting? Get up (protocol below) and return only when sleepy. Within weeks this rebuilds the bed = sleep association.
- One fixed wake time — seven days a week: The single highest-impact habit. Choose a wake time you can keep even after a bad night, get up to it, and get daylight soon after. A fixed morning anchor stabilises the cycle far better than forcing an early bedtime. For many Muslims worldwide, Fajr already provides this anchor — the discipline is not moving it by hours on weekends.
- A real wind-down: The 60–30–10 routine above. The brain needs a descent, not a cliff-edge between full stimulation and darkness.
- Scheduled worry — give rumination an earlier appointment: At the 60-minute mark, spend ten minutes with paper: every worry, tomorrow's tasks, anything you fear forgetting. Close the notebook. When a worry appears in bed, the honest answer is: "It's written down. It has its time, and this isn't it." The notebook handles the planning; the dua handles the surrender — tawakkul with a to-do list.
- Protect sleep pressure: Keep naps short (20–30 minutes) and early, or drop them while retraining. Avoid caffeine from early afternoon. And do not "catch up" by going to bed two hours early: an extra hour awake in bed is an extra hour of conditioned arousal.
- Sleep restriction — only with a clinician: The most potent CBT-I component temporarily limits time in bed to match actual sleep, then expands it as sleep consolidates. It should be set up with a trained therapist or doctor, not improvised from an article — especially if you drive, are pregnant, or have epilepsy, bipolar disorder or sleep apnoea.
Give the steps time: CBT-I typically takes four to six weeks of consistent practice to show its full effect. It is retraining, not a sleeping pill — and its gains tend to last after treatment ends, which medication alone does not offer.
Awake at 3am: The Exact Protocol
You will not remember an article at 3am, so this is a short script. Read it now; keep it simple tonight.
- Do not check the time or your phone. Clock-watching converts wakefulness into maths ("only three hours left"), and maths into panic. Turn the clock away.
- Recite, once or twice, slowly: the waking-in-the-night dua (Section 3) or the Zayd dua — then stop reciting at the problem. Let your breathing slow; a quiet SubhanAllah… Alhamdulillah… on the exhale is enough.
- Estimate, don't count. If it feels like roughly 20 minutes of clear wakefulness — or frustration is rising — act before the frustration sets in.
- Get up. Go somewhere dim, cool and boring. Read something calm or continue quiet dhikr. No phone, no news, no work "since I'm up anyway."
- Return only when sleepy — heavy eyelids, drifting attention. Back to the right side, the short dua, lights off.
- Repeat without drama. Twice in a night is not failure; it is the training working.
- Tahajjud, gently framed. If you wake in the last third of the night and feel able, two rak'ahs can transform a distressing waking into the most beloved part of your night — the anxiety of "I'm awake" often dissolves when the waking has a purpose. But hear this clearly: tahajjud is an invitation, not a test you failed. If you are exhausted, restoring your sleep is caring for the body Allah entrusted to you. No guilt, either way.
- Get up at your fixed time, whatever happened. A lie-in after a rough night feels kind and quietly resets the problem for tonight.
Your 7-Night Starter Plan
One focus per night, stacked:
| Night | Focus | Your only job |
|---|---|---|
| 1 | Duas in place | Learn the before-sleeping set (bismika, Ayat al-Kursi, last two verses, three Quls) — phone in another room for the last 10 minutes |
| 2 | Fixed wake time | Choose your anchor time and keep it — even though last night was imperfect |
| 3 | Scheduled worry | Add the 10-minute notebook at the 60-minute mark |
| 4 | Full wind-down | Run the complete 60–30–10 routine, including wudu and bed preparation |
| 5 | Stimulus control | Bed for sleep only from today; use the 3am protocol if you wake — no exceptions for "just checking" the phone |
| 6 | Caffeine & naps | Last caffeine by early afternoon; nap ≤30 minutes or none |
| 7 | Review, don't judge | Re-take the Sleep Quality Check, note what changed, and keep the full stack running — retraining builds across 4–6 weeks, not 7 nights |
For Parents: Duas for a Child Who Can't Sleep
The established practice is ruqyah over the child — the Prophet ﷺ would seek protection for Al-Hasan and Al-Husayn with the words:
أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّةِ مِنْ كُلِّ شَيْطَانٍ وَهَامَّةٍ وَمِنْ كُلِّ عَيْنٍ لَامَّةٍ
A'udhu bikalimatillahit-tammah, min kulli shaytanin wa hammah, wa min kulli 'aynin lammah ("I seek refuge in the perfect words of Allah from every devil and every poisonous creature, and from every harmful eye"; Sahih al-Bukhari).
The three Quls can also be recited, blown lightly into the hands, and wiped over the child just as for yourself. Pair it with the same medicine in child-sized form: a fixed bedtime and wake time, a short predictable routine (bath, pyjamas, one story, duas, lights off), no screens in the last hour — a parent sitting nearby, quiet and boring, beats negotiations. If a child regularly takes over an hour to sleep, snores heavily, or struggles at school despite enough hours in bed, raise it with their doctor rather than adding more verses.
When It's Insomnia, Not Just a Bad Week
Everyone has broken nights — a sick child, a deadline, a grief. Insomnia disorder is a pattern. Consider professional help if most of these are true:
- You struggle to fall asleep, stay asleep, or wake far too early on three or more nights a week.
- This has continued for three months or more (help is still worth seeking earlier — do not suffer through to a deadline).
- The daytime cost is real: exhaustion, poor concentration, irritability, mistakes at work or university, dread of the night itself.
- You have tried the obvious fixes — routine, caffeine, screens — consistently for several weeks without real change.
- Something else may be driving it: loud snoring or breathing pauses (possible sleep apnoea), restless legs, thyroid problems, chronic pain, low mood or anxiety, or a sleep-disrupting medicine.
Our clinical chronic insomnia guide explains how insomnia is assessed and treated, and pairs naturally with this page: that one is the condition, this one is tonight.
What Proper Medical Help Looks Like Globally
Start with your primary care physician or GP to rule out underlying physical causes (thyroid function, vitamin deficiencies, sleep apnoea) and review medications. For chronic insomnia itself, ask for a referral to a licensed psychologist specializing in CBT-I or behavioural sleep medicine. A warning, plainly: sleeping tablets are a short-term, prescription-only decision for a physician who knows your history. Some are habit-forming, most lose effectiveness over weeks, and none retrain sleep architecture — which is why clinical guidelines globally recommend CBT-I first.
For readers in Pakistan seeking local treatment, our dedicated therapy in Pakistan guide details verified psychologist credentials, hospital OPDs, and average session costs (Rs 1,500–3,500).
If sleeplessness arrives with a mind that keeps frightening you — intrusive thoughts or whisperings that spike at night — start with our waswasah guide and treat the anxiety alongside the sleep; the two usually improve together.
What is the best dua for sleep?
The dua taught specifically for inability to sleep is the dua of Zayd ibn Thabit (RA) — Allahumma gharatin-nujum wa hada'atil-'uyun… — at the top of this page, with its honest grading note. For the nightly routine, the essentials are Allahumma bismika amutu wa ahya, Ayat al-Kursi, the last two verses of al-Baqarah, and the three Quls (all Bukhari/Muslim). "Best" in practice means the ones you know by heart and recite every night.
What did the Prophet ﷺ do when he couldn't sleep?
The reports show a pattern: a fixed night routine (wudu, prepared bedding, right side, a set order of recitation), and specific duas taught for specific problems — the Zayd dua for difficulty sleeping, the refuge dua for being disturbed at night. The lesson underneath is the one CBT-I confirms: a consistent routine, words for the distressed moment, and no struggling in bed.
Is it okay to listen to the Quran to fall asleep?
Yes, many scholars allow listening to recitation at night, and many people find a low, familiar recitation calming — it also replaces the phone. Two cautions: choose a recording that ends rather than autoplaying random content all night, and do not let it become a requirement you panic without — the goal is a brain that can sleep in ordinary quiet, anywhere. If it helps while you rebuild your routine, use it without guilt.
Can I make dua in English or Urdu instead of Arabic?
Yes. Dua is your conversation with Allah and is valid in your own language — English, Urdu, French, Arabic, Malay, Turkish, or any mother tongue — and meaning understood is better than Arabic recited without presence of heart. Learn the Arabic of the short Prophetic duas gradually, because there is blessing in his exact words — but never let "my Arabic isn't good enough" delay you from asking tonight, in the words you have.
How long does CBT-I take to work?
Generally, expect around four to six sessions over four to six weeks, with change often beginning in the second or third week of consistent practice. Some nights get briefly worse first, especially with stimulus control, because you are breaking an old association. This is general guidance, not a promise about your case — but unlike tablets, CBT-I gains tend to persist after treatment ends.
When should I see a doctor about my sleep?
See a doctor if the insomnia markers above fit you, or promptly if you snore heavily with breathing pauses, fall asleep unintentionally during the day, or sleeplessness comes with persistent low mood or anxiety. Seek immediate support — via a doctor, trusted person, or nafsio.com/crisis-support — if broken sleep arrives with thoughts of self-harm.
Tonight, Simply
You do not need a perfect night; you need a repeatable one. Wudu. A prepared bed. The right side. Words the Prophet ﷺ actually taught, in an order your brain will soon recognise as the sound of the day ending. A notebook that carries tomorrow so your pillow doesn't have to. And a calm plan for 3am that treats waking as part of the training, not proof of failure — spiritual or otherwise.
Allahumma gharatin-nujum wa hada'atil-'uyun — the stars have set, the eyes around you have calmed, and the One who never sleeps is awake. That is rather the point: He stays awake, so you don't have to. Sleep well — and if the pattern continues, let us help you treat it properly, starting with the Sleep Quality Check.
Written by NAFSIO Editorial Team
Clinically Reviewed by Dr. Alisha Nasir, Clinical Psychologist, MS, PPA
Last reviewed: 2026-10-01T00:00:00+00:00
NAFSIO provides evidence-based mental health education, independent research, and culturally relevant resources for people in Pakistan and beyond.
Request Guidance or Suggest a Topic
Struggling with a specific issue? Need clinical guidance on a topic we haven't covered yet? Share your details securely, and our team will review it.
→ What to read next
Your Mental Health Matters
Mental health struggles are common and treatable. You do not have to go through them alone. Take the first step towards feeling better today.