Sunan Abi Dawud 5022
سنن أبي داود#5022SahihJabir reported the Messenger of Allah (May peace be upon him) as saying :When one of you sees a vision which he dislikes, he must spit on his left (three times), seek refuge in Allah from the devil three times, and turn from the side on which he was lying
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Al-AlbaniSahih
Muhammad Muhyi Al-Din Abdul HamidSahih
Zubair Ali ZaiSahih Muslim (2262)
In-book reference: 43:250