How do I deal with nightmares as a Muslim?

Deal with nightmares as a Muslim by following the Prophet's simple sunnah: seek refuge in Allah, spit lightly to your left, turn over, and don't tell anyone about it. Bad dreams can't harm you. If nightmares are frequent or linked to trauma, see a doctor too.
Where bad dreams come from
The Prophet ﷺ said that a good dream is from Allah and a bad dream is from Shaytan. If you see something you dislike, seek refuge in Allah from its evil and spit to your left, and it will not harm you (Sahih al-Bukhari 3292). Islam also recognises dreams that simply come from your own thoughts and worries during the day. So a nightmare is not a prophecy, a curse or a sign that something terrible will happen. See Do dreams mean anything in Islam?
What to do when you wake from a nightmare
- Seek refuge in Allah. Say A'udhu billahi minash-shaytanir-rajim three times.
- Spit lightly to your left three times. This is a dry, light blow with a little breath, not actual spitting.
- Turn over onto your other side (Sahih Muslim 2262).
- Don't tell people about it or try to interpret it.
- Pray if you can. Getting up to make wudu and pray two rak'ahs is also recommended, and it calms many people down.
Protection before you sleep
The bedtime sunnah gives real comfort. Reciting Ayat al-Kursi (Quran 2:255) before sleeping keeps a guardian from Allah with you until morning, as the Prophet ﷺ confirmed (Sahih al-Bukhari 2311). See What is Ayat al-Kursi and when do I recite it? You can also recite the last three surahs, make wudu, and sleep on your right side. The full routine is here: What should I say before sleeping?
The Quran also teaches a short prayer for protection from Shaytan's whispers:
Practical sleep habits help too
Nightmares often get worse with stress, late-night screens, heavy food before bed, alcohol withdrawal or some medications. Try a calm wind-down after Isha, put your phone away, and avoid scary films late at night.
If you have nightmares most nights, replay a traumatic event, or are afraid to fall asleep, speak to your GP and follow their advice. Nightmares linked to PTSD or anxiety are treatable, and getting that help fits completely with Islam.
- Bad dreams come from Shaytan or your own worries and can't harm you.
- Seek refuge, spit lightly left, turn over and don't share it.
- Ayat al-Kursi and bedtime adhkar bring protection.
- See a doctor if nightmares are frequent or trauma-related.
People also ask
How do I deal with perfectionism as a Muslim?
Deal with perfectionism as a Muslim by remembering Allah asks for your sincere best: the religion is easy, small deeds count, mistakes are human.
Read the full answer →How do I handle my child's tantrums as a Muslim parent?
Handle your child's tantrums as a Muslim parent by staying calm, controlling your own anger, keeping them safe and teaching once the storm has passed.
Read the full answer →How do I support a Muslim friend with depression?
Yes, you can help a lot by listening without judging. What to say, what to avoid, encouraging treatment and what to do if you fear for their safety.
Read the full answer →How can Islam help with low self-esteem?
Yes, Islam can help a lot. Your worth comes from Allah, who honored every human, not from looks or likes. Humility isn't self-hatred.
Read the full answer →How do I cope with Islamophobia emotionally?
Yes, you can cope, and your hurt is valid. Even the Prophet felt pain at what people said. Patience, reporting hate and caring for your heart.
Read the full answer →