حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا وَكِيعٌ، عَنِ الْعُمَرِيِّ، عَنْ سَعِيدٍ الْمَقْبُرِيِّ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏"‏ إِذَا رَأَى أَحَدُكُمْ رُؤْيَا يَكْرَهُهَا فَلْيَتَحَوَّلْ وَلْيَتْفِلْ عَنْ يَسَارِهِ ثَلاَثًا وَلْيَسْأَلِ اللَّهَ مِنْ خَيْرِهَا وَلْيَتَعَوَّذْ بِاللَّهِ مِنْ شَرِّهَا ‏"‏ ‏.‏

It wasnarrated from Abu Hurairah that the Messenger of Allah (PBUH)said: “If anyone of you sees a dream that he dislikes, let him turnoverand spit dryly to his left three times, and ask Allah for itsgoodand seek refuge from its evil.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 35 Hadith 3910
Web Ref:  Sunan Ibn Majah Vol 5 Book 35 Hadith 3910