When something rises in you out of nowhere
The Qur'an names the source and gives one instruction.
وَإِمَّا يَنزَغَنَّكَ مِنَ ٱلشَّيْطَـٰنِ نَزْغٌ فَٱسْتَعِذْ بِٱللَّهِ ۚ إِنَّهُۥ سَمِيعٌ عَلِيمٌ
Wa immā yanzaghannaka mina-sh-shayṭāni nazghun fa-staʿidh billāh, innahu Samīʿun ʿAlīm.
“And if an evil suggestion comes to you from Satan, then seek refuge in Allāh. Indeed, He is Hearing and Knowing.”
Source
The Qur'an · 7:200
Qur'an
- Qur'anic text in the Uthmani script via Quran.com; translation: Saheeh International