Authentic Islamic Duas for Nightmares & Bad Dreams (Sunnah Guide)

Waking up in the middle of the night with a racing heart after a terrifying dream can leave anyone shaken, anxious, and hesitant to fall back asleep. Fortunately, Islam provides a clear, comforting, and practical framework for dealing with disturbing sleep. By turning to authentic Islamic duas for nightmares and following the prophetic etiquette taught by the Messenger of Allah (peace and blessings be upon him), a believer can immediately neutralize fear, dispel satanic whispers, and restore peace to the night.

Rather than obsessing over dream symbols or fearing that every frightening dream is a sign of black magic (Sihr), the Sunnah teaches us how to classify dreams accurately and respond with calm, decisive spiritual action.

The 3 Types of Dreams in Islam (Sahih Muslim 2263)

Before learning what to do after a nightmare, it is essential to understand where dreams come from. In a foundational hadith narrated by Abu Hurayrah (may Allah be pleased with him), the Prophet Muhammad (peace and blessings be upon him) explained that dreams fall into three distinct categories (Sahih Muslim 2263):

1. Ru’ya (True, Righteous Dreams from Allah)

A Ru’ya is a good, clear, and comforting dream sent by Allah as glad tidings (bushra), encouragement, or gentle guidance. When a believer experiences a good dream, they should praise Allah (Alhamdulillah) and may share it only with people they love and trust who wish them well.

2. Hulum (Disturbing Dreams and Nightmares from Shaytan)

A Hulum is a frightening, confusing, or distressing dream caused by Shaytan to sadden the believer, disturb their rest, or plant anxiety about the future. The Prophet (peace and blessings be upon him) reassured us that a bad dream from Shaytan carries zero real-world power if we follow his Sunnah instructions upon waking.

3. Hadith al-Nafs (Reflections of the Subconscious Mind)

The third category consists of ordinary dreams generated by what a person thinks about, worries over, or experiences during waking hours—such as work stress, conversations, or physical discomfort. These dreams have no spiritual significance and require no interpretation.

5 Sunnah Steps Upon Waking from a Bad Dream

When you wake up from a nightmare, you do not need to panic or search for dream interpreters. In authentic narrations recorded in Sahih Muslim (2261) and Sahih al-Bukhari (6995), the Prophet (peace and blessings be upon him) prescribed five simple, immediate steps that completely protect you from the harm of a bad dream:

Step 1: Seek Refuge in Allah Three Times

Immediately upon waking, seek Allah’s protection from Shaytan and from the evil of what you saw in your dream by saying three times:

أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ، وَمِنْ شَرِّ مَا رَأَيْتُ

Transliteration: A‘ūdhu billāhi minash-shayṭānir-rajīm, wa min sharri mā ra’ayt.

Translation: “I seek refuge in Allah from the accursed Shaytan, and from the evil of what I saw.”

Step 2: Spit Lightly (Dry Spit) to Your Left Three Times

Turn your head slightly to the left and blow/spit very lightly without saliva (tafala) three times. This physical Sunnah gesture symbolizes rejecting and casting away the satanic whisper so it cannot settle in your heart.

Step 3: Change Your Sleeping Side

Turn over onto the opposite side from the one you were sleeping on (for example, if you were sleeping on your left side, turn onto your right side—which is also the preferred Sunnah sleeping posture). Changing your physical position breaks the mental loop of the nightmare and signals a fresh start to your rest.

Step 4: Do Not Tell Anyone About the Nightmare

The Prophet (peace and blessings be upon him) explicitly instructed: “Do not tell anyone about it, for then it will not harm you.” (Sahih Muslim 2261, Sahih al-Bukhari 6995). Sharing a frightening dream gives it emotional weight and invites speculation or anxiety. Keep it private between yourself and Allah.

Step 5: Get Up and Pray If Needed

If the nightmare was particularly intense or you still feel unsettled after changing sides, rise from bed, perform ablution (Wudu), and pray two units (rak‘ahs) of voluntary prayer. Standing before Allah in the quiet of the night transforms fear into serenity and invites divine protection over your home.

Authentic Islamic Duas for Nightmares and Sleeplessness

In addition to the five Sunnah steps above, the companions of the Prophet (peace and blessings be upon him) practiced powerful prophetic supplications for terror during sleep and restlessness at night. Incorporating these Islamic duas for nightmares into your evening routine builds a strong spiritual shield before your head even touches the pillow.

1. Khalid ibn al-Walid’s Dua for Nightmares and Terror in Sleep

It is narrated in Al-Muwatta and Sunan al-Tirmidhi (and graded authentic by scholars) that Khalid ibn al-Walid (may Allah be pleased with him) used to experience terrifying disturbances during his sleep. When he complained to the Prophet (peace and blessings be upon him), the Prophet taught him these exact words to recite:

أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ، وَشَرِّ عِبَادِهِ، وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ

Transliteration: A‘ūdhu bi-kalimātillāhit-tāmmāti min ghaḍabihi wa ‘iqābih, wa sharri ‘ibādih, wa min hamazātish-shayāṭīni wa an yaḥḍurūn.

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 evil suggestions of the devils and lest they be present with me.”

This supplication—also famously taught by ‘Amr ibn al-‘As to his children and recorded in Sunan Abi Dawud (3893) and Jami‘ at-Tirmidhi (3528)—directly addresses both nightmares and unwanted spiritual presence during sleep.

2. Dua for Seeking Peace When Unable to Sleep

When anxiety lingers after waking from a bad dream, Zayd ibn Thabit (may Allah be pleased with him) reported that the Prophet (peace and blessings be upon him) taught him this calming supplication:

اللَّهُمَّ غَارَتِ النُّجُومُ وَهَدَأَتِ الْعُيُونُ، وَأَنْتَ حَيٌّ قَيُّومٌ، لَا تَأْخُذُكَ سِنَةٌ وَلَا نَوْمٌ، يَا حَيُّ يَا قَيُّومُ أَهْدِئْ لَيْلِي وَأَنِمْ عَيْنِي

Transliteration: Allāhumma ghāratin-nujūmu wa hada’atil-‘uyūn, wa Anta Ḥayyun Qayyūm, lā ta’khudhuka sinatun wa lā nawm, yā Ḥayyu yā Qayyūm, ahdi’ laylī wa anim ‘aynī.

Translation: “O Allah, the stars have set and the eyes have rested, and You are the Ever-Living, the Sustainer of all existence; neither drowsiness overtakes You nor sleep. O Ever-Living, O Sustainer, calm my night and grant sleep to my eyes.”

Preventive Bedtime Sunnah to Stop Nightmares Before They Happen

The best way to deal with bad dreams is to establish a consistent prophetic bedtime routine. Before going to sleep:

  • Recite Ayatul Kursi (Surah Al-Baqarah 2:255): As confirmed in Sahih al-Bukhari, whoever recites Ayatul Kursi before sleeping will have a guardian appointed by Allah over them all night, and no devil can come near them until morning. Read more about Ayatul Kursi protection benefits.
  • Recite the Three Quls (Al-Ikhlas, Al-Falaq, An-Nas): Cup your hands together, recite each chapter, blow lightly into your palms, and wipe over your head, face, and body three times.
  • Recite the Last Two Verses of Surah Al-Baqarah (2:285–286): The Prophet (peace and blessings be upon him) promised that these two verses will suffice the believer through the night.
  • Perform Wudu and Sleep on Your Right Side: Combine physical cleanliness with daily duas for protection so your sleep becomes an act of worship.

Frequently Asked Questions (FAQ)

1. Do recurring nightmares always mean I am affected by Sihr or Jinn?

No. Most nightmares are caused by stress, exhaustion, late heavy meals, trauma, or ordinary satanic whispers (Hulum) designed to frighten you. While persistent nightmares accompanied by other symptoms may prompt someone to practice self-Ruqyah, you should never jump to conclusions about Sihr without clear evidence.

2. Can I recite Khalid ibn al-Walid’s dua for my children if they have nightmares?

Yes. In fact, ‘Abdullah ibn ‘Amr (may Allah be pleased with him) used to teach this exact dua to his older children and write it down for younger ones (though as a reminder to recite, not as an amulet). You can recite it over your child gently while placing your hand on their head or chest.

3. Why does the Sunnah forbid telling others about a bad dream?

Narrating a nightmare repeatedly reinforces the fear in your mind and can lead people who lack knowledge to give harmful, anxiety-inducing interpretations. Keeping it silent and seeking refuge in Allah cuts off Shaytan’s goal immediately.

4. What if I forget to spit lightly to my left upon waking?

Simply perform the steps as soon as you remember—seek refuge in Allah three times, turn to your other side, and keep the dream to yourself. Allah’s protection is based on sincere reliance upon Him.

Medical & Spiritual Disclaimer

This guide provides authentic Islamic spiritual practices based on the Quran and Sunnah. Chronic nightmares, sleep paralysis, insomnia, or night terrors can also be linked to medical or psychological conditions such as sleep apnea, PTSD, severe stress, medication side effects, or anxiety disorders. Spiritual supplications and Ruqyah complement—but do not replace—professional medical or mental health care. Please consult a qualified physician or therapist if disturbing sleep symptoms persist.

Leave a Reply

Your email address will not be published. Required fields are marked *