The Prophet ﷺ said, "Name yourselves with my name, but do not adopt my kunya. Whoever sees me in a dream has truly seen me, for Satan cannot take on my form. And whoever deliberately lies about me, let him take his seat in the Fire."
عن النبي ﷺ قال: تسموا باسمي ولا تكتنوا بكنيتي، ومن رآني في المنام فقد رآني، فإن الشيطان لا يتمثل في صورتي، ومن كذب علي متعمدا فليتبوأ مقعده من النار.
Bukhari narrated it in the Book of Knowledge (110), and Muslim in the Introduction (3), both through Abu Awana, from Abu Husayn, from Abu Salih, from Abu Hurairah, who mentioned the hadith. The wording given is Bukhari's, while Muslim confined himself to only the last sentence.