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.”
أَنَّهُ سَمِعَ رَسُولَ اللَّهِ ﷺ يَقُولُ إِذَا رَأَى أَحَدُكُمُ الرُّؤْيَا يُحِبُّهَا فَإِنَّمَا هِيَ مِنَ اللَّهِ فَلْيَحْمَدِ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِمَا رَأَى وَإِذَا رَأَى غَيْرَ ذَلِكَ مِمَّا يَكْرَهُ فَإِنَّمَا هِيَ مِنَ الشَّيْطَانِ فَلْيَسْتَعِذْ بِاللَّهِ مِنْ شَرِّهَا وَلاَ يَذْكُرْهَا لأَحَدٍ فَإِنَّهَا لاَ تَضُرُّهُ قَالَ وَفِي الْبَابِ عَنْ أَبِي قَتَادَةَ قَالَ وَهَذَا حَدِيثٌ حَسَنٌ صَحِيحٌ غَرِيبٌ مِنْ هَذَا الْوَجْهِ وَابْنُ الْهَادِ اسْمُهُ يَزِيدُ بْنُ عَبْدِ اللَّهِ بْنِ أُسَامَةَ بْنِ الْهَادِ الْمَدَنِيُّ وَهُوَ ثِقَةٌ رَوَى عَنْهُ مَالِكٌ وَالنَّاسُ