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." (AR)
Reference (AR): Sahih Muslim 2263 f (AR)
In-book reference (AR): Book 42, Hadith 16 (AR)
USC-MSA web (English) reference(deprecated numbering scheme): Book 29, Hadith 5628 (AR)