Dua & night practice
Duas for Sleep: What to Say Before Sleeping
The dua you came for is in the box below. Under it is the whole routine the Prophet ﷺ kept before sleep — eight steps, roughly five minutes, each one attached to the hadith it comes from.
By Zaman Ishtiyaq, founder of Muhasaba · Updated August 17, 2026
Primary sources: Sahih al-Bukhari 247, 2311, 3113, 5009, 5017, 6320, 6324; Quran 2:255 and 2:285-286. Also cited: Jami' at-Tirmidhi 2892 (graded da'if by Darussalam).
12 min read
In this guide
- 01The Shape of the Prophetic Bedtime
- 02Step 1: Make Wudu Before Bed
- 03Step 2: Dust Off the Bed, Lie on Your Right Side
- 04Step 3: The Three Quls, Blown Into the Hands
- 05Step 4: Ayatul Kursi
- 06Step 5: The Last Two Verses of Al-Baqarah
- 07Step 6: The Dhikr of Fatimah
- 08Step 7: The Sleep Duas Themselves
- 09Step 8: Surah Al-Mulk, If You Keep It
- 10The Complete List, in Order
- 11If Worry Is Keeping You Awake
- 12Common Mistakes With Sleep Duas
- 13What the Sleep Duas Are Closing
- 14Frequently Asked Questions
The dua before sleeping
بِاسْمِكَ اللَّهُمَّ أَمُوتُ وَأَحْيَا
Bismika allahumma amutu wa ahya — "In Your name, O Allah, I die and I live." (Sahih al-Bukhari 6324)
Hudhaifah reported this is what the Prophet ﷺ said whenever he meant to sleep; on waking he said Alhamdulillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur — "All praise is for Allah, who gave us life after He caused us to die, and to Him is the resurrection." The wording treats sleep as a rehearsal for death.
Most pages on this topic hand you a list of duas with no order and no reason for the order. The sunnah is not a list. It is a sequence: purify, protect, settle the day's account in praise, hand the night over. What follows is that sequence, with the narration behind each step. You are not required to do all of it — the Prophet ﷺ said the deeds most beloved to Allah are the most constant, even if small (Sahih al-Bukhari 6464). One step kept every night is the practice. Eight steps kept for a week is not.
The Shape of the Prophetic Bedtime
Those four movements make the eight steps easy to remember, and easy to shorten honestly on a night you have nothing left.
Purify
Wudu, and a bed shaken out. The body is put in order before the words start.
Protect
The three quls, Ayatul Kursi, the last two verses of Al-Baqarah — recitation over the sleeping body.
Settle the account
The dhikr of Fatimah: a hundred words of praise that close the day.
Hand over
The final dua, which says plainly that you may not wake up.
Step 1: Make Wudu Before Bed
The instruction opens with the body, not the tongue. Al-Bara' ibn 'Azib narrates that the Prophet ﷺ told him: "Whenever you go to bed, perform ablution as you would for the prayer, lie on your right side, and say..." (Sahih al-Bukhari 247) — filed by al-Bukhari under a chapter titled the superiority of a person who sleeps with ablution.
This is a sunnah, not a condition — nobody's sleep is invalid without it. But making wudu at the end of the day marks a boundary. What follows it is not scrolling in bed; it is a day being deliberately ended.
Step 2: Dust Off the Bed, Lie on Your Right Side
Abu Hurairah reports: "When any one of you goes to bed, he should shake out his bed with the inside of his waist sheet, for he does not know what has come onto it after him, and then he should say..." (Sahih al-Bukhari 6320). The dua that completes that hadith is in step 7 below.
The right side is from Bukhari 247, quoted above. Both habits are small and easy to dismiss, which is the point: the sunnah of sleep is not only words said into a pillow. Where the right side is not possible — injury, late pregnancy — the duas are unaffected. Scholars treat the position as recommended, not required.
Step 3: The Three Quls, Blown Into the Hands
'Aisha describes the method precisely. This is the step most often done wrong:
"Whenever the Prophet ﷺ went to bed every night, he used to cup his hands together and blow over them after reciting Surah Al-Ikhlas, Surah Al-Falaq and Surah An-Nas, and then rub his hands over whatever parts of his body he was able to rub, starting with his head, face and the front of his body. He used to do that three times."
Note the order: cup the hands, blow, recite into them, then wipe — beginning at the head and face — and repeat the whole cycle three times. These are three of the four quls. Al-Falaq and An-Nas are the pair called the mu'awwidhatayn, the two surahs of refuge; Al-Ikhlas is the one the Prophet ﷺ said is equal to a third of the Quran (Sahih al-Bukhari 5013). If you have not memorised them, start here.
Step 4: Ayatul Kursi
The Throne Verse, Quran 2:255. The promise attached to it at night is unusually specific. In the narration of Abu Hurairah: "Whenever you go to bed, recite Ayatul Kursi... Allah will appoint a guard for you who will stay with you, and no satan will come near you till morning" (Sahih al-Bukhari 2311).
ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُ ۚ لَا تَأْخُذُهُۥ سِنَةٌ وَلَا نَوْمٌ — "Allah — there is no deity except Him, the Ever-Living, the Self-Sustaining. Neither drowsiness overtakes Him nor sleep." The verse you recite as you fall asleep opens by saying that the One you are handing yourself to does not sleep. That is the reason it belongs here. The full text and meaning of Ayatul Kursi is on its own page.
Step 5: The Last Two Verses of Al-Baqarah
Abu Mas'ud narrates that the Prophet ﷺ said: "If somebody recited the last two verses of Surah Al-Baqarah at night, that will be sufficient for him" (Sahih al-Bukhari 5009). Commentators differ on what sufficient covers — against harm, in place of the night prayer, or both — and the hadith does not narrow it.
The verses, 2:285-286, are the believers' own words: we hear and we obey, then a run of requests — do not hold us to account for what we forget, do not burden us beyond our capacity, pardon us, forgive us, have mercy on us. If you are still learning them, read from a mushaf until they settle; the last two ayats of Surah Al-Baqarah page has the Arabic, transliteration and a line-by-line meaning.
Step 6: The Dhikr of Fatimah
'Ali narrates that Fatimah, worn down by grinding grain by hand, went to ask her father for a servant from the captives brought to him. He came to their house that night instead, after they had gone to bed, and told them to stay where they were:
"Shall I tell you of a thing which is better than what you asked me for? When you go to your beds, say Allahu Akbar thirty-four times, Alhamdulillah thirty-three times, and SubhanAllah thirty-three times. This is better for you than what you have requested."
A hundred words of dhikr in place of the household help she had asked for, and he told her it was the better of the two. Other narrations give the order as SubhanAllah, Alhamdulillah, then Allahu Akbar thirty-four times; both sequences are practised. What is not optional is the total: one hundred. This is the step most often skipped, because it is the only one that costs patience rather than memory.
Step 7: The Sleep Duas Themselves
Two duas, both short. The first, from Hudhaifah:
بِاسْمِكَ اللَّهُمَّ أَمُوتُ وَأَحْيَا
Bismika allahumma amutu wa ahya
The second completes the hadith about dusting off the bed. It names both possible endings of the night without flinching:
بِاسْمِكَ رَبِّ وَضَعْتُ جَنْبِي، وَبِكَ أَرْفَعُهُ، إِنْ أَمْسَكْتَ نَفْسِي فَارْحَمْهَا، وَإِنْ أَرْسَلْتَهَا فَاحْفَظْهَا بِمَا تَحْفَظُ بِهِ عِبَادَكَ الصَّالِحِينَ
Bismika rabbi wada'tu janbi wa bika arfa'uh. In amsakta nafsi farhamha, wa in arsaltaha fahfazha bima tahfazu bihi 'ibadakas-salihin.
Both duas assume you might not wake. That is the honest content of the night, and the sunnah puts it in your mouth.
Step 8: Surah Al-Mulk, If You Keep It
Jabir narrated that the Prophet ﷺ would not sleep until he had recited Alif Lam Mim Tanzil — Surah As-Sajdah — and Tabarakalladhi biyadihil-mulk, Surah Al-Mulk (Jami' at-Tirmidhi 2892, graded da'if by Darussalam). Many Muslims keep Surah Al-Mulk nightly for this reason. At thirty verses it is the longest thing here and the first to fall away on a hard night, so treat it as optional. If the earlier steps are not yet consistent, this is not the one to add first.
The Complete List, in Order
The whole routine on one screen. The hour before it has its own set of evening adhkar.
Make wudu as you would for prayer
Shake out the bed
Recite Al-Ikhlas, Al-Falaq and An-Nas into cupped hands; blow, then wipe from head and face over the body — three times
Recite Ayatul Kursi (2:255)
Recite the last two verses of Surah Al-Baqarah (2:285-286)
Say Allahu Akbar 34, Alhamdulillah 33, SubhanAllah 33
Say "Bismika allahumma amutu wa ahya"
Lie on your right side
Optional: recite Surah Al-Mulk
If Worry Is Keeping You Awake
The dua taught to Al-Bara' in Bukhari 247 — the same hadith that gives us wudu and the right side — is the one for a mind that will not stop:
اللَّهُمَّ أَسْلَمْتُ وَجْهِي إِلَيْكَ، وَفَوَّضْتُ أَمْرِي إِلَيْكَ، وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ، رَغْبَةً وَرَهْبَةً إِلَيْكَ، لاَ مَلْجَأَ وَلاَ مَنْجَا مِنْكَ إِلاَّ إِلَيْكَ، اللَّهُمَّ آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ، وَبِنَبِيِّكَ الَّذِي أَرْسَلْتَ
Allahumma aslamtu wajhi ilayk, wa fawwadtu amri ilayk, wa alja'tu zahri ilayk, raghbatan wa rahbatan ilayk. La malja'a wa la manja minka illa ilayk. Allahumma amantu bikitabikal-ladhi anzalt, wa binabiyyikal-ladhi arsalt.
Two details are worth keeping. The Prophet ﷺ told him that if he died that night he would die upon the fitrah, and instructed that these be the last words he said. And when Al-Bara' repeated it back saying "and Your Messenger" instead of "and Your Prophet", he was corrected. The wording is the wording.
For worry that is not only a night-time problem, see the duas for anxiety and tawakkul, the wider disposition this dua is a night-time instance of.
Common Mistakes With Sleep Duas
Doing the quls once instead of three times
Bukhari 5017 has the full cycle — hands cupped and blown into, the three surahs, then wiping from the head and face over the body — repeated three times. Most people run through it once and stop. Still good. Three times is what the hadith describes.
Skipping the dhikr of Fatimah
Longest by time, shortest by memory, so it is the one that quietly disappears. The Prophet ﷺ offered it to his own daughter in place of the help she asked for. It is not filler.
Treating the routine as pass or fail
Eight steps for four nights then abandoned is worse than one step kept for a year. On a bad night, say "Bismika allahumma amutu wa ahya" and sleep. That is the routine at its minimum, and it counts.
Saying the words with no review behind them
The duas ask mercy on a soul being taken and protection for one sent back. If the day was never looked at, the words have nothing under them.
What the Sleep Duas Are Closing
Look at what the last two steps say. The dhikr of Fatimah is a hundred statements about the day: SubhanAllah — Allah is free of any fault in how it went; Alhamdulillah — the good in it was His; Allahu Akbar — whatever went wrong is smaller than Him. Then the final dua hands over a soul that may not be returned. That is a verdict on a day, delivered in ninety seconds.
Which is why the scholars placed muhasaba — the honest self-accounting — in exactly this window. The dhikr is the sentence at the end of the trial; the accounting is the trial. Without it the hundred words are accurate but unattached: praise for a day you never looked at. After even two minutes of looking — what did today hold, where did I fall short, what am I asking forgiveness for — the same words land on something. That is also the case for writing it down: the duas repeat identically every night, the day underneath them does not, and only a record shows whether the same thing keeps arriving at bedtime unresolved. The evening muhasaba guide sets out the nightly accounting in full; it is meant to sit immediately before these duas, not instead of them.
Frequently Asked Questions
What dua do you say before sleeping?
The Prophet ﷺ said as he went to bed: "Bismika allahumma amutu wa ahya" — "In Your name, O Allah, I die and I live" (Sahih al-Bukhari 6324). If you say one thing tonight, say that. A second dua adds: "Bismika rabbi wada'tu janbi wa bika arfa'uh" — "In Your name, my Lord, I lay my side down, and by You I raise it" (Sahih al-Bukhari 6320).
What is the full Islamic bedtime routine?
Eight steps: make wudu, dust off the bed, recite Al-Ikhlas, Al-Falaq and An-Nas three times with blowing into the hands and wiping over the body, recite Ayatul Kursi, recite the last two verses of Surah Al-Baqarah, say the dhikr of Fatimah (Allahu Akbar 34, Alhamdulillah 33, SubhanAllah 33), say "Bismika allahumma amutu wa ahya", and lie on your right side. Many add Surah Al-Mulk.
How many times do you say SubhanAllah before sleep?
Thirty-three. The Prophet ﷺ taught Fatimah and 'Ali to say, on going to bed, Allahu Akbar thirty-four times, Alhamdulillah thirty-three times and SubhanAllah thirty-three times — one hundred in total. He offered it in place of the servant Fatimah had asked for: "This is better for you than what you have requested" (Sahih al-Bukhari 3113).
Should you sleep on your right side in Islam?
Yes, it is the prophetic position. The Prophet ﷺ told Al-Bara' ibn 'Azib: "Whenever you go to bed, perform ablution as you would for prayer, lie on your right side, and say..." (Sahih al-Bukhari 247). It is a sunnah, not an obligation — if injury or pregnancy makes it impossible, the duas still stand.
Is it necessary to make wudu before sleeping?
It is not obligatory, but it is a strongly encouraged sunnah. Al-Bukhari titles the chapter containing hadith 247 "The superiority of a person who sleeps with ablution", and the hadith begins the bedtime instruction with wudu. Sleeping in purity is the opening move of the routine, not a hygiene note.
Before the duas, the review
Two minutes of honest accounting, then hand the night over.
The Muhasaba app guides a short nightly reflection — write or speak what the day actually held, receive a relevant ayah, and close with dhikr. Free on iOS.
Download on the App StoreNew to self-accounting? Learn what muhasaba al-nafs means →
The nightly practice in full: Evening muhasaba, step by step →
If you wake for the night prayer: How to pray tahajjud →
