Sahih al-Bukhari, Book 91, Hadith 7 (Bukhari 6730)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) said, "The (good) dream of a faithful believer is a part of the forty-six parts of prophetism."