Abu Qatada reported,

He was one of the companions and horsemen of the Prophet ﷺ. He said, "I heard the Messenger of Allah ﷺ say, 'A true vision is from Allah, and a disturbing dream is from Satan. So when one of you has a dream that he dislikes, let him spit to his left and seek refuge in Allah from it, and it will not harm him.'"

Bukhari 7005

Sahih

حدثنا يحيى بن بكير حدثنا الليث عن عقيل عن ابن شهاب عن أبي سلمة أن

أبا قتادة الأنصاري

وكان من أصحاب النبي ﷺ وفرسانه قال سمعت رسول الله ﷺ يقول الرؤيا من الله والحلم من الشيطان فإذا حلم أحدكم الحلم يكرهه فليبصق عن يساره وليستعذ بالله منه فلن يضره

البخاري 7005صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Dream interpretation
Chapter
Dreams are from Satan
Numbering
Darussalam 7005
Bukhari 7005