It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "A good (true) dream is one part of forty-six parts of prophethood." (The narrator said:) "That is what I think (the wording was)."
It has a supporting narration (shahid) in the two Sahihs from the hadith of Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him), and also from the narration of Sa'id bin al-Musayyib (may Allah have mercy on him) from Sayyiduna Abu Hurayrah (may Allah be pleased with him).