Question
If a person intends to commit a sin, but for some reason is unable to carry it out in practice, or does not get the opportunity to commit it, will such a person be counted as a sinner in the sight of Allah the Exalted? An explanation in the light of the Quran and Hadith is requested.
Answer
الحمد لله، والصلاة والسلام علىٰ رسول الله، أما بعد!
This is a very important question, and it is necessary to answer it so that a Muslim may keep his heart and mind free from whispers and intentions of sin. A complete explanation is given here in the light of an agreed-upon (muttafaq alayh) hadith qudsi:
The Blessed Hadith
It is narrated from Sayyiduna Abdullah ibn Abbas (may Allah the Exalted be pleased with him) that he said that he heard from the Prophet ﷺ, and the Prophet ﷺ related from Allah the Exalted:
“Whoever intends a good deed but does not act upon it, Allah the Exalted writes for him in his record of deeds one complete good deed (the reward of it). And if he intends a good deed and acts upon it, then ten to seven hundred times, or more, good deeds are written in his record of deeds.
And whoever intends an evil deed, but does not act upon it, Allah the Exalted writes for him in his record of deeds one complete good deed. Then if he acts upon that evil deed, only one evil deed is written in his record of deeds.”
The Meaning of the Hadith
From this authentic (sahih) and agreed-upon hadith qudsi, it becomes entirely clear that:
◈ If a person only intends a sin but does not act upon it, then no sin is recorded in his record of deeds.
◈ Rather, Allah the Exalted writes one good deed in his record of deeds, provided that he holds back from the intention of sin.
◈ However, despite this, it is necessary to avoid intentions of evil, so that a person does not fall into that sin by coming under the whispers of Satan.
Whispers and Thoughts of Sin
If an evil thought or an intention of sin arises in a person’s heart, or a whisper from Satan arises in the heart, he should immediately make repentance and seek forgiveness, and should recite the following blessed verse:
﴿هُوَ الأَوَّلُ وَالْآخِرُ وَالظَّاهِرُ وَالْبَاطِنُ وَهُوَ بِكُلِّ شَيْءٍ عَلِيمٌ﴾
Conclusion
In answer to the question, the summary is that if a person intends a sin but does not act upon it, then by the mercy of Allah the Exalted no sin is written against him, rather, in some cases one good deed is written. However, it is necessary to keep the heart and mind safe from every kind of evil thought and intention, because these very intentions sometimes lead a person to the act of sin.
ھذا ما عندي والله أعلم بالصواب