Jami` at-Tirmidhi, Volume 6, Book 45, Hadith 3453 (DarusSalam) ⓘ
Abu Sa’eed Al-Khudri narrated that: He heard the Prophet saying: “When one of you sees a dream that he likes, then it is from Allah, so let him praise Allah for it, and speak concerning what he saw. And when he sees other than that of what he dislikes, then it is from Shaitan, so let him seek refuge in Allah from its evil, and not mention it to anyone for, surely, it shall not harm him.”
حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا بَكْرُ بْنُ مُضَرَ، عَنِ ابْنِ الْهَادِ، عَنْ عَبْدِ اللَّهِ بْنِ خَبَّابٍ، عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، أَنَّهُ سَمِعَ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ " إِذَا رَأَى أَحَدُكُمُ الرُّؤْيَا يُحِبُّهَا فَإِنَّمَا هِيَ مِنَ اللَّهِ فَلْيَحْمَدِ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِمَا رَأَى وَإِذَا رَأَى غَيْرَ ذَلِكَ مِمَّا يَكْرَهُ فَإِنَّمَا هِيَ مِنَ الشَّيْطَانِ فَلْيَسْتَعِذْ بِاللَّهِ مِنْ شَرِّهَا وَلاَ يَذْكُرْهَا لأَحَدٍ فَإِنَّهَا لاَ تَضُرُّهُ " . قَالَ وَفِي الْبَابِ عَنْ أَبِي قَتَادَةَ . قَالَ وَهَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ مِنْ هَذَا الْوَجْهِ . وَابْنُ الْهَادِ اسْمُهُ يَزِيدُ بْنُ عَبْدِ اللَّهِ بْنِ أُسَامَةَ بْنِ الْهَادِ الْمَدَنِيُّ وَهُوَ ثِقَةٌ رَوَى عَنْهُ مَالِكٌ وَالنَّاسُ .
also referenced under: Hadith 3453 (Reference) & Book 48, Hadith 84 (In-Book)