BUKHARI 7005:
from Abū Salamah from my father —
(a companion of the Prophet ﷺ and one of his cavalry men) "I heard Messenger of Allah ﷺ saying, "A good dream is from Allah, and a bad dream is from Satan; so, if anyone of you had a bad dream which he disliked, then he should spit on his left and seek refuge with Allah from it, for it will not harm him."
البخاري ٧٠٠٥:
عن ابو سلمه عن أبي —
قَتَادَةَ الأَنْصَارِيّ َ وَكَانَ مِنْ أَصْحَابِ النَّبِيِّ ﷺ وَفُرْسَانِهِ قَالَ سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ الرُّؤْيَا مِنَ اللَّهِ وَالْحُلْمُ مِنَ الشَّيْطَانِ فَإِذَا حَلَمَ أَحَدُكُمُ الْحُلُمَ يَكْرَهُهُ فَلْيَبْصُقْ عَنْ يَسَارِهِ وَلْيَسْتَعِذْ بِاللَّهِ مِنْهُ فَلَنْ يَضُرَّهُ
hadithunlocked.com