The Messenger of Allah ﷺ said, "A righteous dream is one of seventy parts of prophethood."
حدثنا هاشم حدثنا الليث حدثنا نافع
عن رسول الله ﷺ أنه قال الرؤيا الصالحة جزء من سبعين جزءا من النبوة
Its isnad is sahih, and it is a repetition of 5104.