صحيح البخاري Sahih Bukhari كتاب التعبير The Book of The Interpretation of Dreams
بَابُ الْحُلْمُ مِنَ الشَّيْطَانِ:

(14) Chapter. A bad dream is from Satan.

1 hadith
Hadith 7005
حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ ، حَدَّثَنَا اللَّيْثُ ، عَنْ عُقَيْلٍ ، عَنِ ابْنِ شِهَابٍ ، عَنْ أَبِي سَلَمَةَ ، أَنَّ أَبَا قَتَادَةَ الْأَنْصَارِيَّ ، وَكَانَ مِنْ أَصْحَابِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ وَفُرْسَانِهِ ، قَالَ سَمِعْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، يَقُولُ : " الرُّؤْيَا مِنَ اللَّهِ ، وَالْحُلْمُ مِنَ الشَّيْطَانِ ، فَإِذَا حَلَمَ أَحَدُكُمُ الْحُلُمَ يَكْرَهُهُ ، فَلْيَبْصُقْ عَنْ يَسَارِهِ وَلْيَسْتَعِذْ بِاللَّهِ مِنْهُ فَلَنْ يَضُرَّهُ " .
Narrated Abu Qatada Al-Ansari: (a companion of the Prophet and one of his cavalry men) "I heard Allah's Apostle saying, "A good dream is from Allah, and a bad dream is from Satan; so, if anyone of you had a bad dream which he disliked, then he should spit on his left and seek refuge with Allah from it, for it will not harm him."
Hadith Reference Sahih Bukhari / The Book of The Interpretation of Dreams / Hadith: 7005
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة