Praise be to Allah.
The questioner has mentioned this problem and is afraid of its consequences. I say to him, rejoice, for its consequences cannot be anything but good. By means of this waswas, the Shaytan tries to gain control over the believers and shake the sound belief in their hearts, and make them suffer psychological and intellectual anxiety that will affect the purity of their faith and their life, if they are believers.
This is not the first or the last time that the believers have been exposed to this. It will continue so long as there is any believer in this world. The Sahabah/Companions of the Prophet (may Allah be pleased with them) also faced this problem. It was narrated that Abu Hurayrah (may Allah be pleased with him) said: “Some of the Companions of the Messenger
of Allah (peace and blessings of Allah be upon him) came to the Prophet (peace and blessings of Allah be upon him) and said to him, ‘We find in ourselves thoughts that are too terrible to speak of.’ He said, ‘Are you really suffering from that?’ They said, ‘Yes.’ He said, ‘That is a clear sign of faith.’” (Muslim).
It was narrated in al-Saheehayn, also from Abu Hurayrah (may Allah be pleased with him), that the Prophet (peace and blessings of Allah be upon him) said, “The Shaytan comes to one of you and says, ‘Who created such and such? Who created such and such?’ Until he says, ‘Who created your Lord?!’ If that happens to any of you, let him seek refuge with Allah and put a stop to these thoughts.”
It was narrated from Ibn ‘Abbas (may Allah be pleased with them both) that a man came to the Prophet (peace and blessings of Allah be upon him) and said, “I think thoughts to myself, which I would rather be burnt to a cinder than speak of them.” The Prophet (peace and blessings of Allah be upon him) said, “Praise be to Allah, Who has reduced all his [the Shaytan’s] plots to mere whispers.” (Abu Dawood).
Shaykh al-Islam Ibn Taymiyah (may Allah have mercy on him) said in Kitab al-Eeman: “The believer may suffer from the whispers of the Shaytan insinuating thoughts of kufr (disbelief), which may make him feel distressed. The Sahabah (may Allah be pleased with them) said, ‘O Messenger of Allah, some of us think thoughts which we would rather fall from heaven to earth than speak of them.’ He said, ‘That is a clear sign of faith.’ According to one report,
thoughts which are too terrible to speak of.’ He said, ‘Praise be to Allah, Who has reduced all his [the Shaytan’s] plots to mere whispers,’ meaning that the fact that these whispers come, but they are so greatly disliked, and they are pushed away from the heart, is a clear sign of faith. This is like the mujahid (warrior) to whom the enemy comes, but he resists him until he overwhelms him,
and this is a mighty jihad (battle)… Hence the seekers of knowledge and devoted worshippers experience waswas and doubts which others do not face, because they (the others) are not following the way prescribed by Allah,
rather they are following their own whims and desires and neglecting to remember their Lord. This is what the Shaytan wants, in contrast to those who are striving to draw closer to their Lord by seeking knowledge and worshipping Him. He is their enemy and seeks to prevent them from drawing closer to Allah.” (p.147 of the Indian edition)
I say to this questioner, if you are faced with this waswas from the Shaytan, then fight it and resist it. Know that it can never harm you when you fulfill the duty of fighting and resisting it, and you refuse to be controlled by it. The Prophet (peace and blessings of Allah be upon him) said, “Allah will forgive my ummah (followers) for any insinuating whispers that may cross their minds, so long as they do not act upon it or speak of it.” (Agreed upon).