Quick facts, sleep and waking duas:
• Core dua before sleep: "Allahumma bismika amutu wa ahya", Sahih al-Bukhari 6312
• Core dua upon waking: "Al-Hamdulillah alladhi ahyana ba'da ma amatana wa ilayhi an-nushur", Sahih al-Bukhari 6312
• The Three Quls: blow into cupped hands, wipe over body 3 times before sleep, Sahih al-Bukhari 5017
• Right-side sleeping dua: "Allahumma aslamtu nafsi ilayk...", Sahih al-Bukhari 247
• Ayat al-Kursi before sleep: a guard from Allah watches over you all night, Sahih al-Bukhari 3275
Every night before consciousness fades, the Prophet ﷺ placed his soul in the hands of his Creator. Every morning when he woke, his first breath carried praise. This is not incidental, it is the architecture of a life oriented toward Allah, with dhikr at both ends of sleep.
This guide covers every authentic dua from the sleeping sunnah: the words to say before lying down, the physical sunnah of how to sleep, the duas for waking, how to handle a bad dream, and how to teach this routine to children. Each section cites its source directly.
Why sleep has its own ritual in Islam
The Quran describes sleep in terms that stop the casual reader short. Allah says: "Allah takes the souls at the time of their death, and those that have not yet died during their sleep. He keeps those for which He has decreed death and releases the others for a specified term." (Quran 39:42) Sleep, in this framing, is a minor death, a nightly return of the soul to its Creator, after which Allah decides whether to send it back.
Every time we wake, it is a mercy. The Prophet ﷺ grasped this with total seriousness. He treated the transition into sleep as a spiritual act requiring specific supplications, physical care, and a conscious return to wakefulness. This is not superstition or ritual for its own sake. It is a framework that keeps Allah's name on the lips at the two most vulnerable transitions of the day, the surrender into unconsciousness, and the gift of consciousness returning.
When you say the bedtime duas, you are not merely performing a habit. You are acknowledging that your life, consciousness, and next breath belong to Allah alone, and you are returning them to Him each night with deliberate gratitude.
The main duas before sleep
The primary dua: Bismika amutu wa ahya
The Prophet ﷺ said: "When you go to your bed, say: 'Allahumma bismika amutu wa ahya.'" (Sahih al-Bukhari 6312)
اللَّهُمَّ بِاسْمِكَ أَمُوتُ وَأَحْيَا
Allahumma bismika amutu wa ahya.
"O Allah, in Your name I die and I live."
Sahih al-Bukhari 6312
Six words. They carry an entire theology. Sleep is acknowledged as a form of death; waking is a form of resurrection. Both are in Allah's name and under His authority. Saying this dua makes the believer conscious of that reality before losing consciousness, which is precisely the point.
The comprehensive dua: Allahumma aslamtu nafsi ilayk
Al-Bara' ibn 'Azib (RA) reported that the Prophet ﷺ instructed him: "When you lie down to sleep, perform wudu as for prayer, then lie on your right side and say..." (Sahih al-Bukhari 247)
اللَّهُمَّ أَسْلَمْتُ نَفْسِي إِلَيْكَ، وَوَجَّهْتُ وَجْهِي إِلَيْكَ، وَفَوَّضْتُ أَمْرِي إِلَيْكَ، وَأَلْجَأْتُ ظَهْرِي إِلَيْكَ، رَغْبَةً وَرَهْبَةً إِلَيْكَ، لَا مَلْجَأَ وَلَا مَنْجَا مِنْكَ إِلَّا إِلَيْكَ، آمَنْتُ بِكِتَابِكَ الَّذِي أَنْزَلْتَ، وَنَبِيِّكَ الَّذِي أَرْسَلْتَ
Allahumma aslamtu nafsi ilayk, wa wajjahtu wajhi ilayk, wa fawwadtu amri ilayk, wa alja'tu zahri ilayk, raghbatan wa rahbatan ilayk, la malja'a wa la manja minka illa ilayk, amantu bi-kitabika alladhi anzalt, wa nabiyyika alladhi arsalt.
"O Allah, I submit myself to You, I turn my face to You, I entrust my affairs to You, I place my back against You, out of longing for You and out of fear of You. There is no refuge and no escape from You except to You. I believe in Your Book which You revealed and Your Prophet whom You sent."
Sahih al-Bukhari 247
The Prophet ﷺ added a critical instruction to Al-Bara': make this the last thing you say before closing your eyes. If you forget and say something else after it, go back and say it again. The reason: "If you die that night, you die upon the fitra", upon the natural disposition of Islam. That is the weight this dua carries.
This dua covers the entire human condition before sleep: submission of the soul (nafs), submission of the face (direction of intention), submission of affairs (every concern of the day), and submission of the body, all surrendered with both longing and awe. It is one of the most complete bedtime duas in the sunnah.
Ayat al-Kursi
Abu Hurayrah (RA) narrated that a man came to him stealing from the zakat. He caught the man three times, and on the third time the man said: "Let me go and I will teach you words that will benefit you." He taught Abu Hurayrah: "When you go to your bed, recite Ayat al-Kursi until you complete it, a guardian from Allah will watch over you all night, and Shaytan will not come near you until morning."
When Abu Hurayrah told the Prophet ﷺ, he confirmed: "He told you the truth, even though he is a liar, that was a shaytan." (Sahih al-Bukhari 3275, 2311)
اللَّهُ لَا إِلَٰهَ إِلَّا هُوَ الْحَيُّ الْقَيُّومُ ۚ لَا تَأْخُذُهُ سِنَةٌ وَلَا نَوْمٌ...
Allahu la ilaha illa huwa, al-Hayyu, al-Qayyum. La ta'khudhuhu sinatun wa la nawm...
Ayat al-Kursi, Quran 2:255
Sahih al-Bukhari 3275
The irony of this narration is instructive: a shaytan, caught stealing, was compelled to teach this protection against shaytans. The verse itself attests to why, it is entirely about Allah's perfect watchfulness and sovereignty. Reciting it at bedtime is an acknowledgment that the only true guardian of your sleep is Allah.
The Three Quls: Al-Ikhlas, Al-Falaq, and An-Nas
'Aishah (RA) reported: "Every night when the Prophet ﷺ went to bed, he would cup his hands together, blow into them, recite Surah Al-Ikhlas, Surah Al-Falaq, and Surah An-Nas, then wipe his hands over whatever he could of his body, starting with his head, face, and the front of his body, doing this three times." (Sahih al-Bukhari 5017)
When he was ill, 'Aishah would do this for him, guiding his hand. The three surahs together are a comprehensive declaration of tawhid and a seeking of refuge from every category of harm: the harm of created things, the harm of darkness, the harm of those who blow on knots (magic), the harm of the envious eye, and the harm of whispering shaytan. Reciting them three times and wiping the body is the literal transmission of barakah from the mouth to the limbs, a physical act of placing the words of Allah upon oneself before sleep.
The Tasbih of Fatimah
Fatimah (RA) came to the Prophet ﷺ asking for a servant to help with her household work. He said:
"Shall I not teach you something better than what you asked for? When you go to your bed, say SubhanAllah 33 times, Alhamdulillah 33 times, and Allahu Akbar 34 times, that is better for you than a servant."
Sahih al-Bukhari 3113
Ali ibn Abi Talib (RA) said he never abandoned this practice after the night he learned it, not even on the night of the Battle of Siffin. The Tasbih of Fatimah is among the most beloved acts of dhikr before sleep. It closes the day with the three foundational phrases of Islamic remembrance: glorification (SubhanAllah), praise (Alhamdulillah), and exaltation (Allahu Akbar). The Prophet ﷺ promised it was worth more than worldly assistance, and those who practice it report a lightness in lying down that is difficult to explain otherwise.
Physical sunnah of sleeping
The Prophet ﷺ's sleep was not simply a physical collapse at the end of the day, it had an entire physical sunnah alongside the verbal one.
Sleep on your right side. Multiple narrations confirm the Prophet ﷺ instructed this, including the hadith of Al-Bara' ibn 'Azib quoted above. Modern sleep science has found that the right-side position reduces strain on the heart; the sunnah preceded this by fourteen centuries.
Perform brief wudu before sleeping. This is sunnah (recommended), not required. The Prophet ﷺ specifically told Al-Bara' to make wudu "as for prayer" before lying down and making the long bedtime dua. Sleeping in a state of purity is connected in hadith to the soul being raised in that same pure state.
Use the miswak. The Prophet ﷺ would use the miswak before sleep among other times. This is part of his broader practice of physical cleanliness before rest.
Do not sleep on your stomach. The Prophet ﷺ saw a man sleeping on his stomach and said: "This is a manner of sleeping that Allah dislikes." (Abu Dawud 5040) It is considered makruh (disliked) in Islamic practice.
Do not sleep flat on your back with one leg crossed over the other, this position was also disliked by the Prophet ﷺ (Sahih al-Bukhari 5969), though this ruling applies to public spaces where one's awrah could be exposed; scholars differ on whether it extends to private sleep.
Dua upon waking
The same hadith of Sahih al-Bukhari 6312 that gives the bedtime dua also gives the waking dua. The Prophet ﷺ said: "When he woke, he would say..."
الْحَمْدُ لِلَّهِ الَّذِي أَحْيَانَا بَعْدَ مَا أَمَاتَنَا وَإِلَيْهِ النُّشُورُ
Al-Hamdulillah alladhi ahyana ba'da ma amatana wa ilayhi an-nushur.
"All praise is to Allah who brought us back to life after He caused us to die, and to Him is the resurrection."
Sahih al-Bukhari 6312
Notice the structure: the dua before sleep says "in Your name I die and I live." The dua upon waking says "praise to Allah who brought us back to life after He caused us to die." They form a pair, a bracket around sleep, with Allah's name opening it and Allah's praise closing it. Every morning you wake, you are waking into a mercy.
There is also an extended waking dua with a specific promise attached to it. The Prophet ﷺ said: "Whoever wakes at night and says..."
لَا إِلَهَ إِلَّا اللَّهُ وَحْدَهُ لَا شَرِيكَ لَهُ، لَهُ الْمُلْكُ وَلَهُ الْحَمْدُ وَهُوَ عَلَى كُلِّ شَيْءٍ قَدِيرٌ، سُبْحَانَ اللَّهِ وَالْحَمْدُ لِلَّهِ وَلَا إِلَهَ إِلَّا اللَّهُ وَاللَّهُ أَكْبَرُ، وَلَا حَوْلَ وَلَا قُوَّةَ إِلَّا بِاللَّهِ
La ilaha ill-Allah wahdahu la sharika lahu, lahul-mulku wa lahul-hamdu wa huwa 'ala kulli shay'in qadir. Subhanallah wal-hamdulillah wa la ilaha ill-Allah wallahu akbar, wa la hawla wa la quwwata illa billah.
"There is no god but Allah, alone, with no partner. To Him belongs sovereignty and to Him belongs all praise, and He is capable of all things. Glory be to Allah, praise be to Allah, there is no god but Allah, Allah is the Greatest, and there is no power or might except with Allah."
Sahih al-Bukhari 1154
The Prophet ﷺ continued: "...then says 'O Allah, forgive me', or makes any dua, it will be answered. If he performs wudu and prays, his prayer will be accepted." This is one of the most powerful times for dua, between sleep and full wakefulness, when the heart is soft and the mind has not yet filled with the noise of the day.
Handling nightmares
The Prophet ﷺ gave clear, practical guidance on bad dreams. He said: "Good dreams are from Allah and bad dreams are from the shaytan. So whoever has a dream that he dislikes, let him spit dryly to his left three times, seek refuge from the shaytan three times, and turn to his other side, for it will not harm him." (Sahih Muslim 2261)
The prescription is specific: dry spit to the left, three repetitions of "a'udhu billahi min ash-shaytan ar-rajim," a turn to the other side, and, critically, do not tell anyone about the dream. The Prophet ﷺ said it would not harm you if you follow these steps. The dream's power over you is directly tied to how much you dwell on it or report it to others.
Good dreams, in contrast, may be shared with those you trust and love. The Prophet ﷺ said they are one of the forty-six parts of prophethood (Sahih al-Bukhari 6987), a communication that has continued since revelation closed.
Children and the bedtime routine
The Prophet ﷺ personally taught children the duas of the sunnah. He taught young Al-Bara' ibn 'Azib the comprehensive bedtime dua, sitting with him and walking him through the words. Teaching children these duas is among the most enduring gifts a parent can give, it connects them to Allah at the most spiritually open moment of the day, before consciousness fades, and builds a habit that often lasts an entire lifetime.
A practical approach for children: start with the two short duas, "Bismika amutu wa ahya" before sleep and "Alhamdulillah alladhi ahyana" upon waking. These are brief enough for any age to memorize, and their meaning is clear enough to explain simply: "We are giving ourselves to Allah before we sleep, and thanking Him when He sends us back."
Once the short duas are memorized, add the Tasbih of Fatimah, children often love the counting, and it gives their hands something to do. Then add Ayat al-Kursi. Then the Three Quls. The full routine builds over months, not days, and the child who learns it young carries it for life.
FivePrayer and the morning prayer: the waking dua leads directly into the Fajr prayer, the first of the five. FivePrayer's Fajr alarm is built specifically to wake you gently before the prayer window opens, so the routine the Prophet ﷺ established, from the waking dua to the prayer, can flow without interruption. Free on iOS, Android, and Chrome.
FAQ
Is wudu required before sleep?
Wudu before sleep is sunnah (recommended) but not obligatory. The Prophet ﷺ encouraged sleeping in a state of purity, and hadiths connect sleeping with wudu to the soul being raised in that same pure state. If you cannot make wudu, you can still recite all the bedtime duas, the duas themselves do not require wudu to be valid or rewarded.
What if I fall asleep while reciting?
Falling asleep in the middle of dhikr or the bedtime duas is considered a sign of blessing by many scholars. If you fall asleep during the Three Quls or the comprehensive dua, you are in the best possible state. The intention and the beginning of the recitation are recorded. Ibn Mas'ud said: the person who sleeps while doing dhikr of Allah is better than one who is awake and not doing dhikr.
Is it bad to sleep without making dua?
It is a lost opportunity, not a sin. The Prophet ﷺ described a person who sleeps without dhikr as being like a dead person, in the sense of missing the remembrance of Allah that gives life meaning. But missing a single night's dua does not harm you. What the sunnah is building is a habit, not a transaction. Consistency over years is what transforms the routine into character.
Should I read Surah Al-Mulk before sleep too?
Yes. There is a specific hadith that reciting Surah Al-Mulk (Quran 67) before sleep protects from the punishment of the grave (Sunan at-Tirmidhi 2891). The chain has some scholarly discussion, but the practice is widely accepted across the major schools of Islamic jurisprudence, and the surah itself, containing the magnificent opening about the One in whose hand is sovereignty, is a profound one to end the day with.
What is the minimum bedtime dhikr if I am very tired?
The absolute minimum from the sunnah is saying "Bismillah" and making a conscious intention. If you can add anything, add Ayat al-Kursi and "Allahumma bismika amutu wa ahya." These two together cover both protection (Ayat al-Kursi guarantees a guardian until morning) and the core theological acknowledgment of sleep as a trust returned to Allah. Everything else is additional blessing.
FivePrayer: prayer times, morning alarm, and daily dhikr in one quiet companion.
FivePrayer's Fajr alarm wakes you before the prayer window closes, so the bedtime sunnah flows into the morning prayer without interruption. Includes the daily adhkar screen for the duas above. Free on iOS, Android, and Chrome. No ads, no tracking.