(10) باب مَنْ رَأَى النَّبِيَّ صلى الله عليه وسلم فِي الْمَنَامِ
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."
Reference: Sahih al-Bukhari 6995
In-book reference: Book 91, Hadith 14
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 87, Hadith 124