Sahih al-Bukhari 3292
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:
as below. Narrated Abu Qatada: The Prophet (ﷺ) said, "A good dream is from Allah, and a bad or evil dream is from Satan; so if anyone of you has a bad dream of which he gets afraid, he should spit on his left side and should seek Refuge with Allah from its evil, for then it will not harm him."
Full reference and source
Sahih al-Bukhari 3292 In-book : Book 59, Hadith 101 USC-MSA web (English) : Vol. 4, Book 54, Hadith 512 (deprecated)
View source on Sunnah.com (opens in a new tab)