Waswasah may be treated with two easy remedies:
Remember Allah a great deal and obey Him. This is the way to attain peace of mind, stability and reassurance, and to ward off the Shaytaan and his whispers, as Allah says (interpretation of the meaning):
“Those who believed (in the Oneness of Allaah — Islâmic Monotheism), and whose hearts find rest in the remembrance of Allaah verily, in the remembrance of Allaah do hearts find rest”
“Whoever works righteousness — whether male or female — while he (or she) is a true believer (of Islamic Monotheism) verily, to him We will give a good life (in this world with respect, contentment and lawful provision), and We shall pay them certainly a reward in proportion to the best of what they used to do (i.e. Paradise in the Hereafter).
98. So when you want to recite the Qur’aan, seek refuge with Allaah from Shaytaan (Satan), the outcast (the cursed one).
99. Verily, he has no power over those who believe and put their trust only in their Lord (Allaah)”
“Say: “I seek refuge with (Allaah) the Lord of mankind,
2. “The King of mankind —
3. “The Ilaah (God) of mankind,
4. “From the evil of the whisperer (devil who whispers evil in the hearts of men) who withdraws (from his whispering in one’s heart after one remembers Allaah).
5. “Who whispers in the breasts of mankind.
6. “Of jinn and men”
Ibn Katheer (may Allah have mercy on him) said in his Tafseer: Sa’eed ibn Jubayr narrated that Ibn ‘Abbaas said concerning the phrase “the whisperer (devil who whispers evil in the hearts of men) who withdraws”: The Shaytaan hovers around the hearts of the sons of Adam, and if a person forgets the remembrance of Allaah and becomes heedless, he whispers to him (waswasa), but if the person remembers Allah, he withdraws. This was also stated by Mujaahid and Qataadah.
Al-Mu’tamir ibn Sulaymaan narrated that his father said: I was told that the shaytaan or the whisperer blows into the heart of the son of Adam at times of sorrow and times of joy, but if the person remembers Allah, he withdraws. End quote.
2. Turning away from the waswasah and distracting oneself from it, and not paying any attention to it or responding to it. This guarantees that it will go away and one will be cured of it.
Although this remedy is difficult in the beginning, it becomes easier later on. All you have to do is strive and make the effort, and ask Allah for help. Allah says (interpretation of the meaning): “As for those who strive hard in Us (Our Cause), We will surely guide them to Our paths (i.e. Allaah’s religion — Islamic Monotheism). And verily, Allaah is with the Muhsinoon (good-doers)” [al-‘Ankaboot 29:69].
Ibn Hajar al-Makki (may Allah have mercy on him) was asked about the disease of waswasah - is there any remedy for it?
He replied: There is an efficacious remedy for it, which is ignoring it completely, even if one feels hesitant about doing so, because once a person stops paying attention to it, it cannot remain for long; rather it will go away after a short time, as those who were guided by Allah have experienced. But if a person pays attention to it and acts upon it, it will continue to increase until it drives him insane, and even worse than that, as we have seen in many of those who were tested by it and paid attention to it and to its devils.
And Allah is the source of strength.