Abu Hurairah reported,

The Prophet ﷺ said, "True dreams are from Allah, and disturbing dreams are from Satan. Whoever sees something he dislikes should seek refuge in Allah from it, spit lightly to his left three times, and not mention it to anyone. If he does so, it will not harm him."

Azami 11678

Sahih

عن أبي هريرة قال

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

الأعظمي 11678صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Dreams and their interpretation
Chapter
Medicine
Section
One who sees a dream he dislikes
Numbering
Jami al-Kamil 11678 (2nd edition)
Azami 11678