Sahih al-Bukhari 5747
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:
I heard the Prophet (ﷺ) saying, "A good dream is from Allah, and a bad dream is from Satan. So if anyone of you sees (in a dream) something he dislikes, when he gets up he should blow thrice (on his left side) and seek refuge with Allah from its evil for then it will not harm him."
Full reference and source
Sahih al-Bukhari 5747 In-book : Book 76, Hadith 62 USC-MSA web (English) : Vol. 7, Book 71, Hadith 643 (deprecated)
View source on Sunnah.com (opens in a new tab)