“If you find within yourself one who is always commanding you with disobedience, miserliness, immoral and lewd sexual conduct – then that is the Shaitān. It is therefore upon you to seek refuge with Allāh (عز وجل) because Allāh commands with that. Allāh (عز وجل) stated:
وَإِمَّا يَنزَغَنَّكَ مِنَ الشَّيْطَانِ نَزْغٌ فَاسْتَعِذْ بِاللَّهِ ۚ إِنَّهُ سَمِيعٌ عَلِيمٌ
“And if an evil suggestion comes to you from Satan, then seek refuge in Allah. Indeed, He is Hearing and Knowing.” (7:200)
So He hears your seeking of refuge with Him, and He knows your situation and knows how to drive away the Shaitān from you.”
Tafsīr Sūrah An-Nisā 1/325.