It can be an exhausting experience waking up breathless, soaked in cold sweat, or frozen by sudden panic in the middle of the night. Broken sleep shatters mental clarity and productivity; it can be because of nightmares of beasts, falling from heights, intruders, or unexplained nighttime panic.

In Islam, dreams are categorised into three types: truthful dreams, self-reflection dreams and distressing nightmares to make them feel grief and terror. It is believed that protection rests fully on Allah.
If you are facing any of these, follow this authentic guide on Dua for Bad Dreams, Nightmares, and Sudden Fear at Night.
Sunnah Steps to Take Immediately After a Nightmare
If you wake up suddenly after a frightening dream or sudden panic, do not speak anything or use your phone. Perform these 4 Sunnah steps –
- Turn your head and make a dry spitting gesture over your left shoulder 3 times.
- Read this for instant refuge-
أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ وَمِنْ شَرِّ هَذِهِ الرُّؤْيَا
“A’oodhu billaahi minash-shaytaanir-rajeemi wa min sharri haadhihir-ru’yaa.”
(I seek refuge in Allah from Satan the outcast and from the evil of this dream.)
- Switch your sleeping position to a different one like if you were sleeping on your right side, turn left.
- You should never disclose your dream to anyone, not even a single soul, and it will never harm you.
Dua for Bad Dreams, Nightmares, and Sudden Fear at Night
The Prophet Muhammad taught us this Dua to completely eradicate nighttime panic-
أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّاتِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ، وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ
“A’oodhu bi-kalimaatillaahit-taammaati min ghadabihee wa ‘iqaabihee wa sharri ‘ibaadihee, wa min hamazaatish-shayaateeni wa ay-yahduroon.”
“I seek refuge in the perfect words of Allah from His anger, His punishment, the evil of His servants, and from the whisperings/incitements of devils and from their presence.”
Sunan Abi Dawud (3893), Jami’ at-Tirmidhi (3528)
The Bedtime Routine for Preventing Nightmares Before Sleep
You should follow this bedtime routine to prevent bad dreams from manifesting by creating a shield before your head touches the pillow.
Step 1- Sleep in a state of ritual cleanliness. An angel remains by the head of one who sleeps in Wudu, praying for their forgiveness until morning.
Step 2- First, dust your mattress three times using the edge of your sheet while reciting Bismillah. Then, prepare your bed for a peaceful night’s sleep.
Step 3: Read Ayat-ul-Kursi. Surah Al-Baqarah (2:255) appoints an angelic guardian over you; no devil can approach you until dawn (Sahih al-Bukhari).
Step 4: Cup your hands together, recite Surah Al-Ikhlas, Surah Al-Falaq, and Surah An-Nas, blow dry breath into your palms, and wipe over your head, face, and front of your body. Repeat this 3 times.
Step 5: Reading the two verses of Surah Al-Baqarah (2:285–286) before sleeping is sufficient for protection against every nighttime evil.
Dua for Night Terror and Insomnia
If you feel sudden anxiety, a racing heartbeat, or intrusive thoughts that prevent you from falling asleep-
اللَّهُمَّ غَارَتِ النُّجُومُ وَهَدَأَتِ الْعُيُونُ وَأَنْتَ حَيٌّ قَيُّومٌ، لَا تَأْخُذُكَ سِنَةٌ وَلَا نَوْمٌ، يَا حَيُّ يَا قَيُّومُ أَهْدِئْ لَيْلِي وَأَنِمْ عَيْنِي
“Allahumma ghaarat-tin-nujoomu wa hada’atil-‘uyoonu wa Anta Hayyun Qayyoom, laa ta’khudhuka sinatunw-wa laa nawm. Yaa Hayyu yaa Qayyoom, ahdi’ laylee wa anim ‘aynee.”
(O Allah, the stars have set, and eyes have closed, and You are the Ever-Living, the Sustainer of all. Neither drowsiness nor sleep overtakes You. O Ever-Living, O Sustainer, calm my night and put my eyes to sleep.)
Balancing Practical Action with Spiritual Remedy
There must be a balance between your practical effort and spiritual prayers.
You should sleep on your right side, placing your right cheek upon your right palm.
You should avoid eating heavy meals late at night to avoid indigestion or acid reflux, as it triggers distressing dreams and sudden panic.
Avoid watching violent media, horror films, or crime documentaries before sleeping.
You might also like reading about – Tested Wazifa to Remove Marriage Bandish (Shadi Ki Bandish) on Daughter.
Frequently Asked Questions
If you suddenly wake up from a nightmare, you should spit dry over your left shoulder 3 times to seek refuge in Allah from Satan and switch the side you were sleeping on. If fear still occurs, stand up and pray 2 units of Rak’ahs of voluntary prayer.
No, it’s strictly forbidden to share your dream, as it directly comes from Satan. Keeping it a secret ensures it will not harm you.
Yes. Older children can memorize the short duas, and as for younger children, parents can read 3 Quls and Ayatul Kursi, blow into their palm, and wipe over them before bedtime.
For getting more spiritual guidance for different problems, visit Islamicwazifa.net.
Disclaimer: This article provides only spiritual guidance and Quranic remedies for spiritual protection and peace of mind. It does not suggest replacing clinical medical care. If you experience any night terrors, severe insomnia, or neurological spasms, consult a licensed medical professional.
