الرُّؤْيَا الصَّالِحَةُ مِنَ اللَّهِ وَالْحُلْمُ مِنَ الشَّيْطَانِ فَإِذَا رَأَى أَحَدُكُمْ شَيْئًا يَكْرَهُهُ فَلْيَنْفُثْ عَنْ يَسَارِهِ ثَلاَثًا وَلْيَتَعَوَّذْ بِاللَّهِ مِنْ شَرِّهَا فَإِنَّهَا لاَ تَضُرُّهُ
"A good vision is from Allah and a bad dream (hulm) is from Satan. So if anyone of you sees a bad dream which he dislikes, he should spit on his left side three times and seek refuge with Allah from its evil, for then it will not harm him."
Sahih Muslim · 2261SahihNarrator: Abu Qatadah
This hadith specifically addresses nightmares (hulm), providing the prophetic protocol for dealing with disturbing dreams through spitting thrice to the left and seeking refuge in Allah.
إِذَا رَأَى أَحَدُكُمْ رُؤْيَا يُحِبُّهَا فَإِنَّمَا هِيَ مِنَ اللَّهِ فَلْيَحْمَدِ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِهَا وَإِذَا رَأَى غَيْرَ ذَلِكَ مِمَّا يَكْرَهُ فَإِنَّمَا هِيَ مِنَ الشَّيْطَانِ فَلْيَسْتَعِذْ مِنْ شَرِّهَا وَلاَ يَذْكُرْهَا لأَحَدٍ فَإِنَّهَا لاَ تَضُرُّهُ
"If anyone of you sees a dream that he likes, then it is from Allah, and he should thank Allah for it and narrate it to others; but if he sees something else, i.e., a bad dream which he dislikes, then it is from Satan, and he should seek refuge with Allah from its evil, and he should not mention it to anybody, for it will not harm him."
Sahih al-Bukhari · 3292SahihNarrator: Abu Sa'id al-Khudri
This hadith provides specific instructions for managing nightmares: do not relate them to anyone, seek refuge from their evil, recognizing them as satanic disturbances that lose power when not discussed.
إِذَا رَأَى أَحَدُكُمُ الرُّؤْيَا يَكْرَهُهَا فَلْيَبْصُقْ عَنْ يَسَارِهِ ثَلاَثًا وَلْيَسْتَعِذْ بِاللَّهِ مِنَ الشَّيْطَانِ ثَلاَثًا وَلْيَتَحَوَّلْ عَنْ جَنْبِهِ الَّذِي كَانَ عَلَيْهِ
"When one of you sees a dream which he dislikes, he should spit on his left side three times, seek refuge in Allah from Satan three times, and turn over from the side on which he was sleeping."
Sunan Abi Dawud · 5042SahihNarrator: Jabir
This hadith adds the specific remedy of changing sleeping position after a nightmare, indicating that physical posture during sleep may contribute to recurring disturbing dreams.