The Messenger of Allah ﷺ said, "A righteous dream is one of seventy parts of prophethood."
حدثنا علي بن محمد حدثنا أبو أسامة وعبد الله بن نمير عن عبيد الله بن عمر عن نافع
قال رسول الله ﷺ الرؤيا الصالحة جزء من سبعين جزءا من النبوة
Muslim narrated it in the chapter on dreams, in the section on dreams being from Allah and being a part of prophethood, hadith no. 2265/9, from the hadith of Abu Usama through this same chain.