The Prophet ﷺ said, "The dream of a believer is one of forty-six parts of prophethood."
حدثنا أبو بكر بن أبي شيبة حدثنا عبد الأعلى عن معمر عن الزهري عن سعيد
عن النبي ﷺ قال رؤيا المؤمن جزء من ستة وأربعين جزءا من النبوة
Muslim narrated it in the Book of Dreams, chapter on dreams being from Allah and being a part of prophethood, no. 2263, from the hadith of Mamar with this chain, and it is in Musannaf, 50-51/11, no. 10499, with the wording "the dream of the Muslim."