Ash-Shama'il Al-Muhammadiyah, Book 55, Hadith 395 (English) ⓘ
Anas Radiyallahu 'Anhu reports that Rasulullah Sallallahu 'Alayhi Wasallam said: "The one who sees me in a dream has really seen me, because the shaytaan cannot impersonate me". He also said: "A dream of a Muslim (conveyed through an angel) is a portion from the forty six portions of nubuwwah"
حَدَّثَنَا عَبْدُ اللهِ بْنُ عَبْدِ الرَّحْمَنِ الدَّارِمِيُّ، قَالَ: حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ، قَالَ: حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ الْمُخْتَارِ، قَالَ: حَدَّثَنَا ثَابِتٌ، عَنْ أَنَسٍ: أَنَّ رَسُولَ اللهِ صلى الله عليه وسلم، قَالَ: مَنْ رَآنِي فِي الْمَنَامِ فَقَدْ رَآنِي، فَإِنَّ الشَّيْطَانَ لا يَتَخَيَّلُ بِي وَقَالَ: وَرُؤْيَا الْمُؤْمِنِ جُزْءٌ مِنْ سِتَّةٍ وَأَرْبَعِينَ جُزْءًا مِنَ النُّبُوَّةِ.
also referenced under: Book 56, Hadith 413 (In-Book)