The Prophet (ﷺ) said, "A good dream is from Allah, and a bad dream is from Satan. So…

Sahih al-Bukhari Book 91 Hadith 14

Sahih al-Bukhari #6995

Interpretation of Dreams 91:14

Narrated Abu Qatada:

The Prophet (ﷺ) said, "A good dream is from Allah, and a bad dream is from Satan. So whoever has seen (in a dream) something he dislikes, then he should spit without saliva, thrice on his left and seek refuge with Allah from Satan, for it will not harm him, and Satan cannot appear in my shape."

Chapter: Whoever saw the Prophet (saws) in a dream

Grade: Sahih