Sunan Ibn Majah, Hadith 3906

It was narrated from Abu Hurairah that the Prophet said: “Dreams are of three types: Glad tidings from Allah, what is on a person’s mind, and frightening dreams from Satan. If any of you sees a dream that he likes, let him tell others of it if he wishes, but if he sees something that he dislikes, he should not tell anyone about it, and he should get up and perform prayer.”

حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا هَوْذَةُ بْنُ خَلِيفَةَ، حَدَّثَنَا عَوْفٌ، عَنْ مُحَمَّدِ بْنِ سِيرِينَ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ ‏ "‏ الرُّؤْيَا ثَلاَثٌ فَبُشْرَى مِنَ اللَّهِ وَحَدِيثُ النَّفْسِ وَتَخْوِيفٌ مِنَ الشَّيْطَانِ فَإِذَا رَأَى أَحَدُكُمْ رُؤْيَا تُعْجِبُهُ فَلْيَقُصَّهَا إِنْ شَاءَ وَإِنْ رَأَى شَيْئًا يَكْرَهُهُ فَلاَ يَقُصَّهُ عَلَى أَحَدٍ وَلْيَقُمْ يُصَلِّي ‏" ‏ ‏.‏

sunnah.com