Full Sharh — Riyad as-Salihin 162
وعن أبى قتادة رضى الله عنه قال: قال النبي صلى الله عليه وسلم: "الرؤيا الصالحة -وفى رواية: الرؤيا الحسنة- من الله، والحلم من الشيطان، فمن رأى شيئاً يكره فلينفث عن شماله ثلاثاً، وليتعوذ من الشيطان فإنها لا تضره" (( مُتَّفَقٌ عَلَيهِ)). النفث نفخ لطيف لا ريق معه.
English Translation
Abu Qatadah (May Allah be pleased with him) reported:: The Prophet (ﷺ) said, "A good vision (dream) is from Allah and a bad dream is from the Satan. He who sees something in a dream that he dislikes, should blow thrice on his left, must seek Allah's Refuge from the evil of the Satan (i.e., by saying: A'udhu billahi minash-Shaitanir-Rajim). Then it will not harm him.".
Source
Riyad as-Salihin(رياض الصالحين)
The Book of the Etiquette of Sleeping, Lying and Sitting etc
Hadith Number
162