Abu Sa’id al-Khudri reported: The Prophet, peace and blessings be upon him, said, “When one of you sees a dream he likes, it is from Allah, so let him praise Allah for it and speak about it. When one of you sees something he dislikes, it is from Satan, so let him seek refuge from its evil and not mention it to anyone. It will not harm him.”
Source: Ṣaḥīḥ al-Bukhārī 7045
Grade: Sahih (authentic) according to Al-Bukhari
عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا رَأَى أَحَدُكُمْ رُؤْيَا يُحِبُّهَا فَإِنَّمَا هِيَ مِنْ اللَّهِ فَلْيَحْمَدْ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِهَا وَإِذَا رَأَى غَيْرَ ذَلِكَ مِمَّا يَكْرَهُ فَإِنَّمَا هِيَ مِنْ الشَّيْطَانِ فَلْيَسْتَعِذْ مِنْ شَرِّهَا وَلَا يَذْكُرْهَا لِأَحَدٍ فَإِنَّهَا لَا تَضُرُّهُ
7045 صحيح البخاري كتاب التعبير باب إذا رأى ما يكره فلا يخبر بها ولا يذكرها