Abu Qatada reported,

The Prophet ﷺ said, "A righteous dream is from Allah, and a disturbing dream is from Satan. Whoever sees something he dislikes should spit lightly to his left three times and seek refuge from Satan, for it will not harm him. And Satan cannot appear in my likeness."

Bukhari 6995

Sahih

حدثنا يحيى بن بكير حدثنا الليث عن عبيد الله بن أبي جعفر أخبرني أبو سلمة

عن أبي قتادة قال

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

البخاري 6995صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Dream interpretation
Chapter
Whoever saw the Prophet ﷺ in a dream
Numbering
Darussalam 6995
Bukhari 6995