Such feeling is from your worst enemy Shaitan who always tries to harm us through different ways. After knowing the source of the a satanic thoughts, we need to tackle it by seeking help and protection from Allah. Repeating Istighfaar and Salawaat and reciting Quran and Du'a are very useful.
Read Quran and sayings of the Prophet (SAWA) and Ahlul Bayt (AS) and repeat to remember and understand more.
Wassalam.