The Prophet ﷺ said, "The dream of a believer is one of forty-six parts of prophethood."
حدثنا عبد الأعلى عن معمر عن الزهري عن سعيد بن المسيب
عن النبي ﷺ قال رؤيا المؤمن جزء من ستة وأربعين جزءا من النبوة
Its isnad is sahih. Bukhari reported it in 12:331 through Ibrahim bin Saad from Zuhri, and Muslim in 2:200-201 through Abdul-Razzaq from Maamar from Zuhri, and with other chains from Abu Hurairah. See 7168.