It is narrated from Hazrat Abu Hurairah (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Dreams are of three types. Good dreams are glad tidings from Allah; some dreams are what a person imagines himself; and some dreams are from Satan to make a person sad. When any of you sees a dream that pleases him, he should relate it if he wishes, and if he sees a dream that he dislikes, he should not mention it to anyone, rather he should stand up and begin to pray.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 9129