- Published on
Dua for Good Dreams: Prophetic Practices for Blessed Sleep
- Authors

- Name
- Ahmad
- Role
- Senior Marketing Manager, Islamic education โข Deen Back
ุจูุณูู ู ุงูููู ุงูุฑููุญูู ูฐูู ุงูุฑููุญูููู ู
In the name of God, the Most Gracious, the Most Merciful.

You close your eyes at night wanting rest โ real rest. Not just unconsciousness, but the kind of sleep that leaves you feeling settled, even lifted. Sometimes you get it. Sometimes you wake up unsettled, a bad dream still clinging to you, or just a vague unease you cannot explain. And sometimes, rarely, you have a dream so vivid and so good that you lie there afterward not wanting to move.
The Prophet ๏ทบ had things to say about all of this. And what he taught about sleep, dreams, and the spiritual preparation for rest is both practical and profound.
The Dua
The primary bedtime dua:
ุจูุงุณูู ููู ุงููููููู ูู ุฃูู ููุชู ููุฃูุญูููุง
Bismika Allahumma amutu wa ahya.
"In Your name, O Allah, I die and I live." โ (Sahih al-Bukhari 6324)
This dua, said just before sleeping, frames sleep as a kind of minor death โ you surrender your consciousness to Allah, trusting that He holds your soul while you sleep and returns it when you wake. This surrender is itself an invitation for Allah's protection and mercy over your sleep, including your dreams.
Dua upon waking from a good dream:
ุงููุญูู ูุฏู ููููููู
Alhamdulillah.
"All praise is due to Allah."
The Prophet ๏ทบ said: if you see something you love in a dream, praise Allah (Sahih al-Bukhari 6985). The dua is simple and immediate โ a spontaneous Alhamdulillah in the moment of waking from a blessed dream.
When to say the bedtime duas: Right before you close your eyes. Not while scrolling, not while lying there thinking โ in the actual moment before sleep, with intention.
The Story Behind It
The Companions reported in detail how the Prophet ๏ทบ prepared for sleep. It was not incidental. He had a full evening routine that transformed the act of sleeping into worship.
Aisha (may Allah be pleased with her) narrated: "Every night when the Prophet ๏ทบ went to bed, he would cup his hands together, blow into them, recite Surah Al-Ikhlas (112), Surah Al-Falaq (113), and Surah An-Nas (114), then wipe his hands over whatever he could of his body, starting with his head, face, and front of his body. He would do this three times" (Sahih al-Bukhari 5017).
This is not a five-second prayer. This is a deliberate, physical, spiritual act โ cupping the hands, blowing, wiping. It says something about how seriously the Prophet ๏ทบ took the spiritual dimensions of sleep.
The narration on dreams is equally significant. The Prophet ๏ทบ said: "A good dream is from Allah, and a bad dream is from Shaytan. Whoever has a dream that he does not like should spit to his left three times and seek refuge in Allah from Shaytan โ it will not harm him" (Sahih al-Bukhari 6984).
Dreams in Islam are not random noise. The Prophet ๏ทบ classified them: some are from Allah (ru'ya salihah โ true, good dreams), some are from Shaytan (hulm โ nightmares, disturbing dreams), and some are from the self (hadith al-nafs โ the mind processing daily concerns). Good dreams are explicitly from Allah and are described as "one of the forty-six parts of prophethood" (Sahih al-Bukhari 6987).
How to Make This Dua Part of Your Daily Life
You cannot program good dreams the way you set an alarm. But you can build a spiritual environment that is more receptive to them. The Sunnah evening routine is essentially this: close the day with Allah.
Build the complete sleep Sunnah as one sequence:
Wudu before sleep โ The Prophet ๏ทบ recommended performing wudu before sleeping (Sahih al-Bukhari 247). Going to sleep in a state of purity is one of the most consistent recommendations in the narrations about sleep.
Recite the three Quls (Surah Al-Ikhlas, Al-Falaq, An-Nas) โ three times each, cupping hands, blowing, and wiping over the body, as Aisha narrated. This is a protection and a blessing.
Recite Ayat al-Kursi โ The Prophet ๏ทบ said that whoever recites Ayat al-Kursi before sleeping will have a guardian from Allah, and no devil will approach them until morning (Sahih al-Bukhari 5010).
Say the bedtime dua โ Bismika Allahumma amutu wa ahya โ as the last conscious act before sleep.
Sleep on your right side โ The Prophet ๏ทบ slept on his right side (Sahih al-Bukhari 247). This is a Sunnah of posture, not just a detail.
End the evening differently
What you do in the hour before sleep affects your sleep quality and dream state. The Prophet ๏ทบ disliked unnecessary talk after Isha โ not because silence is an obligation, but because guarding the nighttime from idle content protects the quality of your sleep and your spiritual state. If you spend an hour scrolling through agitating content before bed, your dreams will reflect that. If you spend it in dhikr, recitation, and reflection, the difference is noticeable.
Try ending every night with your evening adhkar, the wudu, the sleep sequence above, and nothing else. Do it for one week. The quality of your sleep โ including your dreams โ will often shift.
Connect your morning to your evening
How you wake up is partly determined by how you slept. If you wake from a good dream, immediately say Alhamdulillah and try to preserve the feeling of closeness to Allah. Connect this morning gratitude to your morning dua routine and to reading a few ayat of Quran. The morning after a good dream is often one of the best times for worship โ the heart is already open.
Build an Evening Routine Blessed by the Sunnah
Track your nightly adhkar, wudu before sleep, and evening Quran. DeenBack helps you build the consistent sleep Sunnah that protects your night โ and your dreams.
Free download. Premium features available in-app.
Related Duas
Dua for protection while sleeping:
ุงููููููู ูู ุจูุงุณูู ููู ุฃูุญูููุง ููุจูุงุณูู ููู ุฃูู ููุชู
Allahumma bismika ahya wa bismika amut.
"O Allah, in Your name I live and in Your name I die." โ (Variation, Sahih al-Bukhari 6312)
Dua upon waking from sleep:
ุงููุญูู ูุฏู ููููููู ุงูููุฐูู ุฃูุญูููุงููุง ุจูุนูุฏู ู ูุง ุฃูู ูุงุชูููุง ููุฅููููููู ุงููููุดููุฑู
Alhamdulillahil-ladhi ahyana ba'da ma amatana wa ilayhi-n-nushur.
"Praise be to Allah Who has restored us to life after causing us to die, and to Him is the resurrection." โ (Sahih al-Bukhari 6312)
For the companion dua when disturbing dreams occur, see the dua for nightmares and the evening protection routine at dua for protection. Your complete dua for sleeping practice sets the foundation for both.
Common Questions
How do I tell if a dream is from Allah or from Shaytan?
The Prophet ๏ทบ gave a practical distinction: good dreams (ru'ya salihah) leave you with a sense of peace, often contain something uplifting or reassuring, and feel meaningful. Nightmares and disturbing dreams are from Shaytan. Ordinary confusing dreams that seem to process daily events are hadith al-nafs โ the mind's own activity. You do not need to analyze every dream โ the response is what the Prophet ๏ทบ taught: praise Allah for the good ones, and seek refuge from Shaytan for the disturbing ones.
Should I write down my dreams?
There is no Sunnah specifically on recording dreams. The Companions did share some of their significant dreams with the Prophet ๏ทบ, which he sometimes interpreted. If a dream feels particularly significant, there is nothing wrong with noting it. But Islamic tradition does not generally encourage deep personal dream interpretation โ that territory has many pitfalls and is best approached with a knowledgeable scholar if needed.
Is it true that certain foods cause bad dreams?
There is some overlap between prophetic wisdom about food and modern sleep science. Eating heavily before sleep, consuming a lot of sugar, or eating foods that cause digestive discomfort can affect sleep quality including dreams. The prophetic practice of eating lightly in the evening, not going to sleep immediately after a large meal, and the general Islamic teaching on moderation in food are all relevant here.
Closing
Sleep is one of the signs of Allah:
ููู ููู ุขููุงุชููู ู ูููุงู ูููู ุจูุงูููููููู ููุงููููููุงุฑู
"And among His signs is your sleep by night and by day." โ (Surah Ar-Rum, 30:23)
Every night you sleep is a moment of trust in Allah โ your soul returned to Him while your body rests. And every morning you wake is a new beginning, a restoration. The Prophet ๏ทบ treated this sacred daily cycle with care and intentionality.
Build the sleep Sunnah. Not as a checklist, but as a genuine closing of your day with Allah. When the day ends well โ with dhikr, with wudu, with the protection duas โ your night often reflects it.
End Every Day With Allah โ Build the Sleep Sunnah
Track your nightly wudu, evening dhikr, and Ayat al-Kursi habit. DeenBack helps you close each day the way the Prophet did โ with intention, protection, and peace.
Free download. Premium features available in-app.
Frequently Asked Questions
Is there a dua for having good dreams?
There is no single hadith dua specifically labeled 'for good dreams.' However, the Prophet taught that reciting Ayat al-Kursi before sleeping, saying the three Quls, and making the bedtime dua (Bismika Allahumma amutu wa ahya) prepare you spiritually for sleep and invite Allah's protection โ including over your dream state. Good dreams are from Allah, and maintaining closeness to Allah through the evening and sleep duas is the Sunnah way to invite them.
What does Islam say about good dreams?
The Prophet (peace be upon him) said: 'A good dream is from Allah and a bad dream is from Shaytan' (Sahih al-Bukhari 6984). He also said that as time draws near, the dreams of the believer will rarely be false (Sahih al-Bukhari 7017). Good dreams are one of the remaining portions of prophethood. They are a mercy and a comfort for the believer.
What should I do when I have a good dream?
The Prophet (peace be upon him) said: if you see something you like in a dream, praise Allah for it and tell only those you love (Sahih al-Bukhari 6985). Do not announce it broadly. The narration suggests that sharing a good dream widely can cause it to be interpreted negatively or invite jealousy. Give thanks to Allah, perhaps tell someone close to you, and leave it at that.
Is dreaming of the Prophet Muhammad a good sign?
Yes. The Prophet (peace be upon him) said: 'Whoever sees me in a dream has truly seen me, for Shaytan cannot take my form' (Sahih al-Bukhari 6994). Seeing the Prophet in a dream is considered among the most blessed dreams a Muslim can have. If you see him as he has been described, it is authentic. This dream should increase your love for him and motivation in your deen.
Can I control what I dream about?
You cannot directly control dreams, but you can influence the conditions. What you think about before sleep, the state of your heart, and what you do in your evening tend to shape your dream experiences. Muslims who maintain their evening adhkar, end their nights thinking about Allah and good things, and sleep in a state of purity often report more positive dream experiences. The environment you create before sleep matters.
