Hadith 6042
Sayyiduna Awf bin Malik (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): "Dreams are of three types: some are from Satan to cause distress so that he may make a person sad; some are those dreams which a person keeps thinking about while awake, so he sees the same thing during sleep; and some are a forty-sixth part of prophethood."
The narrator says: I asked, "Did you hear this directly from the Noble Prophet (peace and blessings be upon him)?" He replied, "I heard this directly from the Noble Prophet (peace and blessings be upon him)."