Purity and Ostentation
Many times a person thinks about doing a good deed and then Satan comes to him and whispers to him, saying, “You are doing that ostentatiously, to be seen of men and for a good reputation.” Therefore, he makes us go away from the good deed. How can one remain free of such occurrences?
One can remain free of such occurrences by seeking refuge in Allah from the accursed Satan, as well as by continually performing good deeds. He should not pay attention to such whisperings that make him stop doing good deeds. If he turns away from such whisperings and seeks refuge in Allah from the accursed Satan, such whisperings will stop by the permission of Allah.
Shaikh Ibn Uthaimin
Source : Fatwas regarding Women – Muhammed al-Musnad , Darussalam Publications
Related Link: https://abdurrahman.org/jinn-shayateen-devils