Abu Huraira reported Allah's Messenger (ﷺ) as saying:
The vision of a Muslim which he sees or which is shown to him, and in the hadith transmitted on the authority of Ibn Mushir (the words are): "The pious dream is the forty-sixth part of Prophecy." (DE)
Reference (DE): Sahih Muslim 2263 f (DE)
In-book reference (DE): Book 42, Hadith 16 (DE)
USC-MSA web (English) reference(deprecated numbering scheme): Book 29, Hadith 5628 (DE)