Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said, "Whoever sees me in a dream has truly seen me, for Satan cannot take on my form."He also said, "When one of you has a bad dream, he should not tell anyone about Satan's toying with him in his sleep."

Azami 11685

Sahih

عن جابر

أن رسول الله ﷺ قال: من رآني في النوم فقد رآني، إنه لا ينبغي للشيطان أن يتمثل في صورتي وقال: إذا حلم أحدكم فلا يخبر أحدا بتلعب الشيطان به في المنام.

الأعظمي 11685صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Dreams and their interpretation
Chapter
Medicine
Section
One whom Satan plays with in his sleep should not tell people about it
Numbering
Jami al-Kamil 11685 (2nd edition)
Azami 11685