Skip to content

    New Muslims

    Dua Before Sleeping: What to Say at Bedtime

    The dua before sleeping, Bismika Allahumma amutu wa ahya, plus the full bedtime routine the Prophet ﷺ taught, in order, and what to do after a bad dream.

    Al Hidayah Institute8 min read

    A bedside lamp giving off a warm glow beside a bed at night
    On this page

    The short dua before sleeping is Bismika Allahumma amutu wa ahya: "In Your name, O Allah, I die and I live." The Prophet ﷺ said it whenever he lay down to sleep (Sahih al-Bukhari 6324). If you only learn one bedtime dua this week, make it that one.

    He also had a fuller routine: wudu, the three Quls blown into the hands, Ayat al-Kursi, the tasbih he taught his daughter Fatimah, and a dua he asked to be the last words you say. Below it is in a sensible order, with the Arabic, a transliteration, the meaning and the source for each. None of it takes long. The whole set comes to about five minutes, and you can build it up one piece at a time.

    The bedtime routine at a glance

    1. Make wudu, if you can.
    2. Dust off the bed and say Bismika Rabbi wada'tu janbi.
    3. Recite the three Quls into your cupped hands and wipe over your body, three times.
    4. Recite Ayat al-Kursi.
    5. Say SubhanAllah 33, Alhamdulillah 33, Allahu akbar 34.
    6. Lie on your right side and say Bismika Allahumma amutu wa ahya.
    7. Close with Allahumma aslamtu wajhi ilayk, the last words before you sleep.

    The order of steps 2 to 6 isn't fixed by any hadith, so don't worry about getting it wrong. What the hadith do say is that the "aslamtu" dua should be the last thing you say.

    1. Wudu and lying on your right side

    The Prophet ﷺ told al-Bara' ibn 'Azib:

    When you want to go to bed, perform ablution as you do for prayer, then lie down on your right side

    Sahih al-Bukhari 6311Sahih

    Narrated by al-Bara' ibn 'Azib. Shortened; the dua he taught follows in section 7.

    Going to bed in wudu is a sunnah, not a requirement. If you're already in bed and realize you haven't made it, just say the duas anyway.

    2. Dusting off the bed

    This one surprises people because it's so practical. The Prophet ﷺ said to shake out your bed before getting in, "for he does not know what has come on to it after him", and then to say:

    "If You keep my soul" isn't a figure of speech. The Quran describes sleep as a kind of small death, when Allah takes the soul and either keeps it or sends it back:

    Quran, Az-Zumar 39:42

    ٱللَّهُ يَتَوَفَّى ٱلْأَنفُسَ حِينَ مَوْتِهَا وَٱلَّتِى لَمْ تَمُتْ فِى مَنَامِهَاۖ فَيُمْسِكُ ٱلَّتِى قَضَىٰ عَلَيْهَا ٱلْمَوْتَ وَيُرْسِلُ ٱلْأُخْرَىٰٓ إِلَىٰٓ أَجَلٍ مُّسَمًّىۚ إِنَّ فِى ذَٰلِكَ لَـَٔايَـٰتٍ لِّقَوْمٍ يَتَفَكَّرُونَ ٤٢

    Allāh takes the souls at the time of their death, and those that do not die [He takes] during their sleep. Then He keeps those for which He has decreed death and releases the others for a specified term. Indeed in that are signs for a people who give thought.

    Translation: Saheeh International. Recitation: Mishary al-Afasy.

    3. The three Quls, blown into your hands

    Whenever the Prophet (ﷺ) went to bed every night, he used to cup his hands together and blow over it after reciting Surat Al-Ikhlas, Surat Al-Falaq and Surat An-Nas, and then rub his hands over whatever parts of his body he was able to rub, starting with his head, face and front of his body. He used to do that three times.

    Sahih al-Bukhari 5017Sahih

    Narrated by 'A'ishah.

    In practice: cup your hands, recite al-Ikhlas, al-Falaq and an-Nas, blow lightly into your palms (a breath with a little moisture, not spitting), then wipe over your head, face and the front of your body, and as much of the rest as you can reach. Do the whole thing three times. Parents often do it over a small child who can't do it yet.

    4. Ayat al-Kursi

    Verse 255 of al-Baqarah. Abu Hurayrah learned its bedtime benefit from a thief he caught three nights in a row, and the Prophet ﷺ confirmed it:

    Whenever you go to bed, recite "Ayat-al-Kursi"-- 'Allahu la ilaha illa huwa-l-Haiy-ul Qaiyum' till you finish the whole verse. (If you do so), Allah will appoint a guard for you who will stay with you and no satan will come near you till morning.

    Sahih al-Bukhari 2311Sahih

    Narrated by Abu Hurayrah. Shortened.

    Quran, Al-Baqarah 2:255

    ٱللَّهُ لَآ إِلَـٰهَ إِلَّا هُوَ ٱلْحَىُّ ٱلْقَيُّومُۚ لَا تَأْخُذُهُۥ سِنَةٌ وَلَا نَوْمٌۚ لَّهُۥ مَا فِى ٱلسَّمَـٰوَٰتِ وَمَا فِى ٱلْأَرْضِۗ مَن ذَا ٱلَّذِى يَشْفَعُ عِندَهُۥٓ إِلَّا بِإِذْنِهِۦۚ يَعْلَمُ مَا بَيْنَ أَيْدِيهِمْ وَمَا خَلْفَهُمْۖ وَلَا يُحِيطُونَ بِشَىْءٍ مِّنْ عِلْمِهِۦٓ إِلَّا بِمَا شَآءَۚ وَسِعَ كُرْسِيُّهُ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضَۖ وَلَا يَـُٔودُهُۥ حِفْظُهُمَاۚ وَهُوَ ٱلْعَلِىُّ ٱلْعَظِيمُ ٢٥٥

    Allāh - there is no deity except Him, the Ever-Living, the Self-Sustaining. Neither drowsiness overtakes Him nor sleep. To Him belongs whatever is in the heavens and whatever is on the earth. Who is it that can intercede with Him except by His permission? He knows what is [presently] before them and what will be after them, and they encompass not a thing of His knowledge except for what He wills. His Kursī extends over the heavens and the earth, and their preservation tires Him not. And He is the Most High, the Most Great.

    Translation: Saheeh International. Recitation: Mishary al-Afasy.

    The last two verses of al-Baqarah are another sunnah for the night: "If somebody recited the last two Verses of Surat Al-Baqara at night, that will be sufficient for him" (Sahih al-Bukhari 5009). If you know them, add them here.

    5. SubhanAllah, Alhamdulillah, Allahu akbar

    Fatimah, the Prophet's ﷺ daughter, was worn out by grinding grain at home and came to ask him for a servant. He came to her and 'Ali that night, after they'd gone to bed, and gave them this instead:

    When you go to bed, say, 'Allahu-Akbar' thirty-four times, and 'Subhan Allah thirty-three times, and 'Al hamdu-li l-lah thirty-three times for that is better for you both than a servant.

    Sahih al-Bukhari 3705Sahih

    Narrated by 'Ali. Shortened.

    That's 100 in total, and it takes about two minutes on your fingers. The hadith lists Allahu akbar first; most people say SubhanAllah first, and the counts are what matter.

    6. Bismika Allahumma amutu wa ahya

    Whenever the Prophet (ﷺ) intended to go to bed, he would recite: "Bismika Allahumma amutu wa ahya (With Your name, O Allah, I die and I live)."

    Sahih al-Bukhari 6324Sahih

    Narrated by Hudhayfah. Shortened.

    The same hadith gives the matching dua for waking up: Alhamdu lillahil-ladhi ahyana ba'da ma amatana wa ilayhin-nushur, "Praise be to Allah who gave us life after He made us die, and to Him is the return." Saying one at night and the other in the morning is an easy pair to learn together.

    7. The last words: Allahumma aslamtu wajhi ilayk

    This is the dua the Prophet ﷺ asked to be the last thing you say before sleep, lying on your right side:

    If you should die then (after reciting this) you will die on the religion of Islam (i.e., as a Muslim); so let these words be the last you say (before going to bed)

    Sahih al-Bukhari 6311Sahih

    Narrated by al-Bara' ibn 'Azib. Shortened.

    You'll often see it written with aslamtu nafsi, "I submit my self", which is how another narration in al-Bukhari words it (6313). Al-Bukhari's wording here has wajhi, "my face". Either is fine. One detail from the same hadith: al-Bara' tried to say "Your Messenger whom You sent" when repeating it back, and the Prophet ﷺ corrected him to "Your Prophet". Words in a dua he taught are worth learning as he taught them.

    If you can't sleep

    You'll find a dua for insomnia shared widely, said to have been taught to Khalid ibn al-Walid. It's in Jami' at-Tirmidhi 3523, and it's graded weak (da'if), so we haven't given it here. What the sunnah does give you for a restless night is this: if you wake up in the night, say La ilaha illallahu wahdahu la sharika lah, lahul-mulku wa lahul-hamd, wa huwa 'ala kulli shay'in qadir. Alhamdulillah, wa subhanallah, wa la ilaha illallah, wallahu akbar, wa la hawla wa la quwwata illa billah, then ask Allah for forgiveness or anything else you need. The Prophet ﷺ said that dua is answered, and if you then make wudu and pray, the prayer is accepted (Sahih al-Bukhari 1154).

    Ordinary things help too: put the phone away before you start the routine, and give the adhkar your full attention rather than saying them while scrolling. If sleeplessness goes on for weeks, see a doctor. That's not a lack of faith.

    After a bad dream

    Nightmares are common, and the sunnah treats them calmly. The Prophet ﷺ said:

    If anyone sees a dream which he does not like, he should spit on his left side three times, and seek refuge with Allah from the Satan three times, and let him turn over from the side on which he was sleeping.

    Sahih Muslim 2262Sahih

    Narrated by Jabir.

    So, if you wake from a bad dream:

    1. Blow or spit lightly, with little or no saliva, to your left three times.
    2. Say A'udhu billahi minash-shaytanir-rajim three times.
    3. Turn over onto your other side.
    4. Don't tell people about it.
    5. If you like, get up and pray.

    The last two come from other authentic hadith. One reminds us that "a bad or evil dream is from Satan" and that if you seek refuge from its evil, "it will not harm him" (Sahih al-Bukhari 3292). Another says to get up and pray and not relate it to people (Sahih Muslim 2263). A good dream, on the other hand, is from Allah, and you can share it with someone you love (Sahih al-Bukhari 7044).

    Start small

    You don't need to do all seven tonight. Start with Bismika Allahumma amutu wa ahya and the three Quls. Add Ayat al-Kursi when you've learned it, then the 33-33-34. Most people have the full routine within a month or two.

    If you haven't memorized the Quls or Ayat al-Kursi yet, our free Quls and Ayat al-Kursi course teaches them line by line. For dua in general, how to make dua and the course How to Ask Allah are the places to start, and our duas page has more for the morning and evening.

    Take the free How to Ask Allah course

    Questions people ask

    What is the dua before sleeping?

    Bismika Allahumma amutu wa ahya, "In Your name, O Allah, I die and I live" (Sahih al-Bukhari 6324). The Prophet ﷺ also taught Allahumma aslamtu wajhi ilayk as the last words before sleep (Bukhari 6311).

    What should I read before sleeping?

    The three Quls blown into your hands three times (Bukhari 5017), Ayat al-Kursi (Bukhari 2311), the last two verses of al-Baqarah (Bukhari 5009), and SubhanAllah 33, Alhamdulillah 33, Allahu akbar 34 (Bukhari 3705).

    What is the dhikr before sleep?

    SubhanAllah 33 times, Alhamdulillah 33 times and Allahu akbar 34 times, which the Prophet ﷺ taught Fatimah and 'Ali for bedtime.

    What dua should I read for nightmares?

    Seek refuge with A'udhu billahi minash-shaytanir-rajim three times, blow lightly to your left three times, and turn onto your other side (Sahih Muslim 2262). Don't tell people about the dream.

    Is there a dua for difficulty sleeping?

    The insomnia dua often shared (Tirmidhi 3523) is graded weak. The sunnah routine above, and the dhikr for waking in the night in Sahih al-Bukhari 1154, are authentic.

    Do I have to be in wudu before sleeping?

    No, it's a sunnah, not an obligation. Say the bedtime duas whether you've made wudu or not.

    Written by

    Al Hidayah Institute

    The teaching team at Al Hidayah Institute.

    Discussion

    Questions and reflections are welcome. Be kind; our team reads along.

    Sign in to join the discussion.

    No comments yet. If something here raised a question, ask it.

    A minaret and domes in silhouette against an orange sunset

    What Does Allahu Akbar Mean?

    Allahu akbar means "Allah is greater": greater than anything else, however big it seems. It opens every prayer, fills the call to prayer and is said on Eid. Here's the meaning, how to say it, and where Muslims use it.

    Sunlight falling across a small table and chairs

    What Does Alhamdulillah Mean?

    Alhamdulillah means "all praise is for Allah". It opens Surah Al-Fatihah, it's the Muslim answer to "how are you?", and it's said after sneezing, eating and in hard times. The meaning, how to say it, and the hadith behind it.

    A star-filled sky over red desert dunes after sunset

    What Does SubhanAllah Mean?

    SubhanAllah means "Glory be to Allah": declaring Allah free of every flaw and above anything unworthy of Him. Here's the Arabic, how to say it, when Muslims use it, and the rewards in authentic hadith.