To get rid of Devilish whispers:
• Adhere to the instructions of the Prophet to stop going along with those whispers.
• Seek refuge with Allah, say “I believe in Allah.”
• Distract yourself from these whispers by glorifying Allah, remembering Him and calling upon Him, and sending blessings upon the Prophet.
• Read a great deal of the Quran.
• Do a lot of righteous deeds.
• Beware of being filled with self-admiration because of your worship, or being deceived by your good behaviour and conduct or your many righteous deeds.