Abu Qatada reported,

The Messenger of Allah ﷺ said, "A good dream is from Allah and a bad dream is from Satan. Whoever sees a dream and dislikes something in it should spit lightly to his left and seek refuge with Allah from Satan, then it will not harm him, and he should not tell anyone about it. But if he sees a pleasant dream, let him rejoice and tell it only to those he loves."

Muslim 5902

Sahih

و حدثني أبو الطاهر أخبرنا عبد الله بن وهب أخبرني عمرو بن الحارث عن عبد ربه بن سعيد عن أبي سلمة بن عبد الرحمن

عن أبي قتادة

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

مسلم 5902صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Dreams
Chapter
Recitation of poetry, identifying the most poetic expression, and condemnation of poetry
Numbering
Darussalam 5902
Muslim 5902