Abu Qatada reported,

I heard the Prophet ﷺ say, "A true vision is from Allah, and a bad dream is from Satan. If any of you sees something he dislikes, let him spit lightly to his left three times when he wakes up and seek refuge from its evil, then it will not harm him."Abu Salama said, "I used to see dreams that weighed on me heavier than a mountain, but once I heard this hadith, I no longer cared about them."

Bukhari 5747

Sahih

حدثنا خالد بن مخلد حدثنا سليمان عن يحيى بن سعيد قال سمعت أبا سلمة قال سمعت

أبا قتادة يقول

سمعت النبي ﷺ يقول الرؤيا من الله والحلم من الشيطان فإذا رأى أحدكم شيئا يكرهه فلينفث حين يستيقظ ثلاث مرات ويتعوذ من شرها فإنها لا تضره وقال أبو سلمة وإن كنت لأرى الرؤيا أثقل علي من الجبل فما هو إلا أن سمعت هذا الحديث فما أباليها

البخاري 5747صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Medicine
Chapter
Blowing in ruqya
Numbering
Darussalam 5747
Bukhari 5747