“A righteous good dream that comes true is one of the forty-six parts of An-Nubuwwa.” Sahih al-Bukhari 6987

Arabic hadith text
حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ، حَدَّثَنَا غُنْدَرٌ، حَدَّثَنَا شُعْبَةُ، عَنْ قَتَادَةَ، عَنْ أَنَسِ بْنِ مَالِكٍ، عَنْ عُبَادَةَ بْنِ الصَّامِتِ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏رُؤْيَا الْمُؤْمِنِ جُزْءٌ مِنْ سِتَّةٍ وَأَرْبَعِينَ جُزْءًا مِنَ النُّبُوَّةِ ‏"
Translation
Narrated 'Ubada bin As-Samit

The Prophet (ﷺ) said, "The (good) dreams of a faithful believer is a part of the forty-six parts of prophetism:'