Narrated by Abu Qatada:
The Prophet said, “A good dream that comes true is from Allah, and a bad dream is from Satan, so if anyone of you sees a bad dream, he should seek refuge with Allah from Satan and should spit on the left, for the bad dream will not harm him.” (Bukhari, Volume 9, Book 87, Number 115)
Narrated by Abu Sa’id Al-Khudri:
The Prophet said, “If anyone of you sees a dream that he likes, then it is from Allah, and he should thank Allah for it and narrate it to others; but if he sees something else, i.e., a dream that he dislikes, then it is from Satan, and he should seek refuge with Allah from its evil, and he should not mention it to anybody, for it will not harm him.” (Bukhari, Volume 9, Book 87, Number 114)
Narrated by 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 dislike, 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.” (Bukhari, Volume 9, Book 87, Number 124)