Sahih al-Bukhari 7005
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
الرُّؤْيَا مِنَ اللَّهِ، وَالْحُلْمُ مِنَ الشَّيْطَانِ، فَإِذَا حَلَمَ أَحَدُكُمُ الْحُلُمَ يَكْرَهُهُ فَلْيَبْصُقْ عَنْ يَسَارِهِ وَلْيَسْتَعِذْ بِاللَّهِ مِنْهُ، فَلَنْ يَضُرَّهُ "
Narrated Abu Qatada Al-Ansari:
(a companion of the Prophet (ﷺ) and one of his cavalry men) "I heard Allah's Messenger (ﷺ) 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."
Full reference and source
Sahih al-Bukhari 7005 In-book : Book 91, Hadith 23 USC-MSA web (English) : Vol. 9, Book 87, Hadith 133 (deprecated)
View source on Sunnah.com (opens in a new tab)