NASAI-KUBRA 10669:
from Abū Qatādah —
(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." (Using translation from Bukhārī 7005)
الكبرى للنسائي ١٠٦٦٩:
عن ابو قتاده —
سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ «الرُّؤْيَا الصَّالِحَةُ مِنَ اللهِ وَالْحُلُمُ مِنَ الشَّيْطَانِ فَإِذَا حَلَمَ أَحَدُكُمُ الْحُلُمَ يَكْرَهُهُ فَلْيَبْصُقْ عَنْ يَسَارِهِ ثَلَاثًا وَلْيَسْتَعِذْ بِاللهِ مِنْهُ فَلَنْ يَضُرَّهُ»
hadithunlocked.com