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."
أن رسول الله ﷺ قال: من رآني في النوم فقد رآني، إنه لا ينبغي للشيطان أن يتمثل في صورتي وقال: إذا حلم أحدكم فلا يخبر أحدا بتلعب الشيطان به في المنام.