Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:2261fAbū al-Ṭāhir > ʿAbdullāh b. Wahb > ʿAmr b. al-Ḥārith > ʿAbd Rabbih b. Saʿīd > Abū Salamah b. ʿAbd al-Raḥman > Abū Qatādah

The good vision are from Allah and the evil dreams are from the satan. If one sees a dream which one does not like, one should spit on one's left side and seek the refuge of Allah from the satan; it will not do one any harm, and one should not disclose it to anyone and if one sees a good vision one should feel pleased but should not disclose it to anyone but whom one loves.  

مسلم:٢٢٦١fوَحَدَّثَنِي أَبُو الطَّاهِرِ أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ وَهْبٍ أَخْبَرَنِي عَمْرُو بْنُ الْحَارِثِ عَنْ عَبْدِ رَبِّهِ بْنِ سَعِيدٍ عَنْ أَبِي سَلَمَةَ بْنِ عَبْدِ الرَّحْمَنِ عَنْ أَبِي قَتَادَةَ

عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ قَالَ الرُّؤْيَا الصَّالِحَةُ مِنَ اللَّهِ وَالرُّؤْيَا السَّوْءُ مِنَ الشَّيْطَانِ فَمَنْ رَأَى رُؤْيَا فَكَرِهَ مِنْهَا شَيْئًا فَلْيَنْفِثْ عَنْ يَسَارِهِ وَلْيَتَعَوَّذْ بِاللَّهِ مِنَ الشَّيْطَانِ لاَ تَضُرُّهُ وَلاَ يُخْبِرْ بِهَا أَحَدًا فَإِنْ رَأَى رُؤْيَا حَسَنَةً فَلْيُبْشِرْ وَلاَ يُخْبِرْ إِلاَّ مَنْ يُحِبُّ  


See similar narrations below:

Collected by Suyūṭī
suyuti:10899a
Request/Fix translation

  

السيوطي:١٠٨٩٩a

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

[م] مسلم عن أَبي قتادة