Sources cited:Every verse, hadith and du'a is cited to its primary canonical source - verify any reference in one click
The Three Categories — and Why It Matters Which
The Prophet's (ﷺ) three-fold classification is not academic — it is the diagnostic tool that determines the response. A dream that is a true vision from Allah (the first category) should be received with gratitude, told only to those one loves, and possibly interpreted by a person of knowledge. A dream from shaytan (the second category) should be dismissed using the four-step routine and not entertained further. A dream that is the mind's own processing (the third category, by far the most common) deserves no special action — it does not require interpretation, dismissal, or response, only acknowledgment that the day's thoughts are surfacing in sleep. Most of what people categorize as "bad dreams" falls into the third category, and treating these as if they were the second creates anxiety that the dreams themselves never warranted.
The Medical Layer Many Muslims Skip
If bad dreams have become a recurring pattern — three or four nights a week, or every night — the spiritual reading is rarely sufficient. Sleep medicine identifies several specific patterns, and each has a treatment that the Sunnah's "use both means" ethic explicitly endorses. Untreated obstructive sleep apnoea is the single most common cause of recurring vivid nightmares in adults — the airway obstruction causes oxygen drops, which the brain converts into vivid threatening imagery. A sleep study and (if warranted) a CPAP machine resolves it within weeks. Post-traumatic nightmares, especially in those who have lived through war, abuse, or accident, respond to evidence-based therapies including prolonged exposure and image rehearsal therapy. Certain medications — beta-blockers, some antidepressants, varenicline (for smoking cessation), and steroids — cause nightmares as a known side-effect; a conversation with the prescribing doctor often produces an alternative. None of this is in conflict with the Sunnah's recitation routine. The Prophet (ﷺ) taught: "Allah has not sent down a disease except that He has also sent down its cure" (Sahih al-Bukhari 5678). The dreams may have a medical cause; the recitation continues regardless.
The Bedtime Routine That Prevents Most Bad Dreams
The Prophet's (ﷺ) bedtime Sunnah, fully observed, prevents the majority of disturbing dreams before they begin. The sequence is: make wudu before bed; recite Ayat al-Kursi once (Sahih al-Bukhari 5010 — "a guardian will remain over you until morning"); recite the last two ayat of Al-Baqarah (Sahih al-Bukhari 5009); cup your hands and recite Surah Al-Ikhlas, Al-Falaq, and An-Nas three times each, blow into the palms, and wipe over your head, face, and as much of your body as you can reach (Sahih al-Bukhari 5017); say "Bismika allahumma amutu wa ahya" (Sahih al-Bukhari 6324). Most adults complete the entire sequence in under ten minutes. Households that install this routine and keep it for two to three weeks usually report a marked drop in nightmare frequency — sometimes to zero. The remaining nightmares are typically the medical or processing kind, and the four-step dismissal handles them.
