The Prophet ﷺ said, "The dream of a believer is one of forty-six parts of prophethood."
حدثنا محمد بن كثير أخبرنا شعبة عن قتادة عن أنس
عن النبي ﷺ قال رؤيا المؤمن جزء من ستة وأربعين جزءا من النبوة
Bukhari narrated it in the Book of Dream Interpretation, chapter, "A true dream is one of the forty-six parts of prophethood," hadith no. 6987, and Muslim narrated it in the Book of Dreams, chapter 1, hadith no. 2264, from the hadith of Shubah, with the same wording.