Sayyiduna Jabir (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): "When a person sees a dream which he does not like, he should spit three times to his left and seek Allah's protection from Satan three times, and then he should change the side on which he was lying (i.e., he should turn to the other side)."
Hadith Referenceصحیح ابن حبان / كتاب الرؤيا / 6060
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح: م (7/ 54).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح