Maliks Muwatta Book 052, Hadith Number 004.

Section : Visions.

Yahya related to me from Malik from Yahya ibn Said that Abu Salama ibn Abd ar-Rahman said, "I heard Abu Qatada ibn Ribiyy say that he heard the Messenger of Allah, may Allah bless him and grant him peace, say, 'The good dream is from Allah, and the bad dream is from shaytan. When you see what you dislike, spit to your left side three times when you wake up, and seek refuge with Allah from its evil. It will not harm you then, Allah willing.'" Abu Salama said, "I would see dreams which weighed on me more heavily than a mountain. When I heard this hadith, I was not concerned about it."