I recommend you to fear Allah, Exalted be He, seek refuge with Allah from the accursed Satan, and not to pay attention to such
insinuations and doubts as they all are from Satan.
A Companion (may Allah be pleased with him) complained to the Prophet (peace be upon him) that he had weird thoughts to the extent that he would prefer to be a piece of fiery charcoal before he could open his mouth to express them. He (the Prophet) said, "Allah is the Greatest, Allah is the Greatest, praise be (Part No. 1; Page No. 107) to Allah Who reduced the plots of Satan to mere whispering."
Abu Dawud with an authentic chain of narrators. It is narrated by
Ibn Mas`ud (may Allah be pleased with him) - who considered this narration to be Marfu` (a Hadith narrated from the Prophet with a connected or disconnected chain of narration) while in fact it is Mawquf (words or deeds narrated from a Companion of the Prophet that are not attributed to the Prophet) that,
The angel entrusted with the heart of the son of Adam inspires him as Satan does. The angel's inspiration is a promise of good, belief in the truth and aspiration to its good reward. Satan's inspiration is a promise of evil, denial of the truth and despair of good. Thus, if you feel the inspiration of the angel, praise Allah and ask His blessings; and if you feel Satan's inspiration, seek refuge with Allah from him and seek Allah's forgiveness.
In this respect you have to make more remembrance of Allah, the Exalted, seek forgiveness from Allah, recite the Noble Qur'an, seek refuge with Allah from the accursed Satan and recite the Opening Surah of (Part No. 1; Page No. 108) the Quran (Surah Al-Fatihah), Surah Al-Ikhlas, Al-Mu`awwidhatayn (Surah Al-Falaq and Surah Al-Nas) and Ayat-ul-Kursy (the Qur’anic Verse of Allah’s Chair, Surah Al-Baqarah, 2:255) and in general any part of the Noble Qur'an is good. Allah, the Exalted, said,
And We send down of the Qur’ân that which is a healing and a mercy to those who believe (in Islâmic Monotheism and act on it), and it increases the Zâlimûn (polytheists and wrong-doers) nothing but loss.
Try to control yourself to abandon anger as the Prophet (peace be upon him) commanded those who get angry to relinquish their anger by observing Wudu' (ablution) and by sitting if they were standing, lying if they were sitting and seeking refuge with Allah from the accursed Satan. Moreover we recommend you to recite Ayat-ul-Kursy when going to sleep and to recite Surah Al-Ikhlas and Al-Mu`awwidhatayn three times when going to sleep, in the morning and in the evening.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.