The Messenger of Allah ﷺ said, "Whoever sees me in a dream has truly seen me, for Satan cannot take my form." Or Shuba said, "He cannot imitate me. And whoever lies about me deliberately, let him take his seat in the Fire."
حدثنا محمد بن جعفر قال حدثنا شعبة عن أبي حصين قال سمعت ذكوان أبا صالح يحدث
قال رسول الله ﷺ من رآني في المنام فقد رآني إن الشيطان لا يتصور بي أو قال شعبة لا يتشبه بي ومن كذب علي متعمدا فليتبوأ مقعده من النار
Its isnad is sahih. It has already been mentioned in two parts, the first part in 2/410-411, and the second in 2/410 and 413 of the printed edition.