Guide
Recurring nightmares, the Sunnah, and when to see a doctor
The short answer
The Sunnah gives a few simple steps after a bad dream, and nothing in it forbids treatment. If nightmares keep returning, frighten you or follow a hard event, see a doctor as well. This page is not medical advice.
Traditional interpretations, not a fatwa and not a prediction. How we source.
In this article
Abu Salama had a problem that most readers will recognise. He saw dreams that frightened him so much that he shivered and ran a temperature. In Muslim 2261a he says he used to quiver and have a fever from his dreams, and in 2261d he says they weighed on him more heavily than a mountain. In 2261g he says some of them made him ill.
Then he met Abu Qatada, who told him what the Prophet ﷺ had said. Abu Salama says that since hearing it, he did not mind them (Muslim 2261d).
What the hadith tell you to do
The guidance that cured Abu Salama's distress is short, and it comes in several narrations that each add a piece. The steps are not meant to be done all at once. They are a set of options, set out here with their sources.
| Step | What the narrations say | Where |
|---|---|---|
| Seek refuge in Allah from its evil | A disliked dream is from Shaytan, and refuge is the first remedy | Bukhari 6986, Muslim 2261a |
| Spit lightly on the left, 3 times | The narrations use more than one Arabic verb (nafatha, bazaqa); scholars describe the act as a light blowing out of the breath, with little or no saliva | Muslim 2261a, Bukhari 6986 |
| Do not tell it to anyone | A disliked dream is not to be related | Muslim 2261f, Muslim 2261g |
| Turn over to the other side | Turn over from the side on which you were sleeping | Muslim 2262 |
| Get up and pray | Stand and offer prayer | Muslim 2263a |
The promise attached to these is simple. If you do this, the dream "will not harm" you (Muslim 2261a, Bukhari 6986). The Qur'an states the same principle from another side: Shaytan's whispering aims to grieve believers, and he cannot harm them except by Allah's permission (Qur'an 58:10). That verse speaks of secret counsel, not of dreams, and we offer it as the same reasoning, not as a text about nightmares.
When a nightmare keeps coming back
The Sunnah describes what to do on a night. It does not say that a nightmare that returns every week has nothing to do with your body or your life, and nothing in it forbids treatment. The hadith divide dreams into 3 kinds: good news from Allah, a disturbance from Shaytan, and the mind's own talk (Muslim 2263a). Stress, poor sleep, grief, and painful memories can all feed the third kind, and sleep problems and some medicines or substances can make dreams more intense. Doctors know this territory.
So we would not ask a reader to choose between the two. The Prophet ﷺ said that Allah created a treatment for every disease He created (Bukhari 5678). Seeking it is consistent with the manners above, and for a nightmare that keeps returning, both belong together.
You should see a doctor, or a mental health professional, if any of these is true:
- The nightmares keep returning over weeks.
- You wake terrified, or are afraid to go to sleep.
- You are exhausted in the day, or your mood is low.
- They began after something frightening or painful, or after a change in medicine.
- You shout, kick or move violently in your sleep, or others tell you that you do.
Tell them what the dreams are like and what else is happening in your life. They do not need an interpretation, and a Muslim doctor or counsellor is not required, though some people find it easier to talk with one.
For a child, and for a long period of fear
Children have frightening dreams too, and the first help is plain: stay with them, comfort them, and let them describe it if they want to. A report in Abu Dawud 3893 says that the Prophet ﷺ used to teach his companions words of refuge for fright: "I seek refuge in the perfect words of Allah from His anger, the evil of His servants, the evil suggestions of the devils and their presence". It also says that Abdullah ibn Amr taught them to his older children and hung them on the younger ones. The grading of that report is disputed: two editors call it weak and one calls it hasan. We mention it as a report some people use, and it is not necessary.
For the dreams that the tradition does interpret, and for how to handle a dream you did not like, see what to do after a good or bad dream. For a dream of the Prophet's own that is frightening to read, and what it can and cannot be used for, see the longest dream in the Sunnah.
Common questions
Does a nightmare mean something is wrong with my faith?
Nothing in the hadith says so. Abu Salama says he had dreams that made him ill until he heard the guidance of Abu Qatada (Muslim 2261a, Muslim 2261g). The hadith divide dreams into three kinds, and one of them is the mind's own talk (Muslim 2263a), which stress and poor sleep can easily produce.
Should I tell someone about a nightmare?
The Sunnah says not to relate a disliked dream to people (Muslim 2261f). That concerns telling the dream as if it were news or prophecy. It does not mean you should hide distress from a doctor or a counsellor. If nightmares are affecting you, describe what is happening to a professional, who needs the facts, not an interpretation.
When should I see a doctor about nightmares?
If they keep returning over weeks, wake you in fear, make you dread sleep, leave you exhausted in the day, began after a frightening or painful event, or involve shouting or moving violently in sleep. A doctor can check sleep, medicines and mood. The Prophet ﷺ said there is no disease for which Allah did not also create a treatment (Bukhari 5678).
Reviewed 5 October 2026 by The Editorial Team. We cite our sources and fix mistakes openly: see our editorial standards, or report a correction.