Sunan at-Tirmithiy كتاب الرؤيا باب إذا رأى فى المنام ما يكره ما يصنع
The Messenger of God, peace and blessings of God be upon him said, "A good dream is from God and a distressing dream is from Satan. So if any one of you sees something that he (1) hates, he should spit [lightly] on his left side thrice, and seek refuge in God from its evil; it will not harm him. Footnotes: (1) Masculine pronouns are generally used in Arabic as a means for referring to both men and women when the meaning is left general and is not otherwise specified Click on ḥadīth to read more