Answer:
(Fatwa: 498/385/D=1434)
These are confused thoughts. When you have such dreams and you awake then recite لا حول ولا قوة الا بالله thrice and spit lightly to your left side thrice and turn your side and sleep. In-shaAllah, it shall not give you any harm. If such thoughts come while you are awake then recite لا حول ولا قوة الا باللهl and turn your mind towards good deeds.
Allah (Subhana Wa Ta’ala) knows Best
Darul Ifta,
Darul Uloom Deoband
