When I do Salah (formal prayers) or intend to do good deeds I often get very evil thoughts in my mind. When I concentrate in Salah, and try to focus on the meaning of the words, evil thoughts enter my mind, which make evil suggestions about everything including Allah. I feel very frustrated and angry about this. I know that none forgives sins except Allah alone, but because of my thoughts I feel that there is nothing worse than to have evil thoughts about Allah. After Salah I ask Allah’s forgiveness, but feel very bad because I want to stop these evil thoughts, but I can’t stop them. These thoughts spoil my enjoyment of Salah, and also make me feel as though I am doomed. Please advise me.
Praise be to Allah
Evil whispers during prayer and at other times come from the Shaytan, who is keen to misguide the Muslim and deprive him of good and keep it far away from him. One of the Sahabah complained to the Messenger of Allah (peace and blessings of Allah be upon him) about Waswas during prayer, and he said:
“The Shaytan comes between me and my prayers and my recitation, confusing me therein.”
The Messenger of Allah (peace and blessings of Allah be upon him) said:
“That is a devil called Khanzab. If he affects you, seek refuge in Allah from him and spit drily to your left three times.” He (the Sahabi) said, I did that and Allah took him away from me.(Narrated by Muslim, 2203)
Proper focus (Khushu’) is the essence of prayer. Prayer without proper focus is like a body without a soul. The following are two of the things that help one to develop the proper focus:
1- Striving to think about what you are saying and doing, pondering the meanings of the Quran, Dhikr (words of remembrance) and Du’as (supplications) that you are reciting; bearing in mind that you are conversing with Allah as if you can see Him. For when the worshipper stands to pray, he is speaking to his Lord, and Ihsan (perfection of worship) means worshipping Allah as if you are seeing Him, and knowing that even though you cannot see Him, He sees you. Every time a person experiences the sweetness of prayer, he will be more inclined to do it. This depends of the level of one’s faith- and there are many means of strengthening one’s faith. Hence the Prophet (peace and blessings of Allah be upon him) said,
“Of the things of your world, women and perfume have been made dear to me, and my joy is in prayer.” According to another Hadith he said, “Give us our rest through it, O Bilal (i.e. with prayer),” and he did not say, give us a break from it.
2- Striving to ward off the things that may distract you during prayer, namely thinking about things that are irrelevant or distracting. Waswas affects each person differently, because Waswas has to do with a person’s level of doubts and desires and the degree to which a person is attached to other things or fears other things.
With regard to what you say about the Waswas reaching such a great level that you have begun to experience Waswas that makes you think about Allah in ways that are not appropriate, these are evil whispers from the Shaytan. Allah says (interpretation of the meaning):
And if there comes to you from Satan an evil suggestion, then seek refuge in Allah. Indeed, He is the Hearing, the Knowing.[Fussilat 41:36]
Some of the Sahabah complained about the Waswas that was bothering them. 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 having such thoughts?’ They said, ‘Yes.’ He said, ‘That is a clear sign of faith.’” (Narrated by Muslim). (Narrated by Muslim, 132 from the Hadith of Abu Hurairah).
An-Nawawi said in his commentary on this Hadith (prophetic tradition): “The Prophet’s words, ‘That is a clear sign of faith’ mean, the fact that you think of this Waswas as something terrible is a clear sign of faith, for if you dare not utter it and you are so afraid of it and of speaking of it, let alone believing it, this is the sign of one who has achieved perfect faith and who is free of doubt.”
And it was said that what it means is that the Shaytan only whispers to those whom he despairs of tempting, because he is unable to tempt them. As for the Kafir (non-Muslim), he can approach him in any manner he wants and is not restricted to Waswas, rather he can play with him however he wants. Based on this, what the Hadith means is that the cause of Waswas is pure faith, or that Waswas is a sign of pure faith.
The fact that you hate that and your heart recoils from it is a clear sign of faith. Waswas happens to everyone who turns to Allah by reciting Dhikr etc. It is inevitable, but you have to be steadfast and patient, and persevere with your Dhikr and prayer, and not give up, because in this way you will ward off the plot of the Shaytan. Indeed, the plot of Satan has ever been weak. Every time a person wants to turn to Allah, Waswas brings other matters to mind. The Shaytan is like a bandit: every time a person wants to proceed towards Allah, he wants to block the way. Hence when it was said to one of the Salaf (pious predecessors) that the Jews and Christians say, “We do not experience Waswas,” he said, “They are speaking the truth, for what would the Shaytan do with a house in ruins?” (From Fatawa Sheikh Al-Islam Ibn Taymiyah, 22/608).
1- If you feel that you are being affected by this Waswas, say, “Amantu Billahi Wa Rasulihi (I believe in Allah and His Messenger).” It was narrated from ‘Ayshah that the Messenger of Allah (peace and blessings of Allah be upon him) said:
“The Shaytan comes to one of you and says, ‘Who created you?’ And he says ‘Allah.’ Then the Shaytan says, ‘Who created Allah?’ If that happens to any one of you, let him say, Amantu Billahi Wa Rusulihi (I believe in Allah and His messengers). Then that will go away from him.”(Narrated by Ahmad, 25671; classed as Hasan (sound) by Al-Albani in As-Sahihah, 116).
2- Try to stop thinking about that as much as possible, and keep busy with things that will distract you from it.
Finally, we advise you to keep on turning to Allah in all situations, and to ask Him for help, and to beseech Him, and to ask Him to make you steadfast until death, and to cause you to die doing righteous deed.
And Allah knows best.
Taken from IslamQA.info