The Excellence and Mercy of Allah, The Exalted
On the authority of Ibn Abbaas (radi Allahu anhu), on the authority of the Messenger of Allah (sal Allahu alaihi wa sallam) from what he relayed from His Lord, The Blessed, The Exalted, that He said: “Surely, Allah has recorded the good and evil deeds. He then clarified that. So whoever intended to do a good deed but does not carry it out, Allah records it with Himself as a full and complete good deed. lf he intended it and carried it out, Allah records with Himself as ten good deeds up to seven hundred, up to many times multiplied. If he intended to do an evil deed but does not carry it out, Allah records it with Himself as a full and complete good deed. If he intended it and carried it out; Allah records it as one evil deed.”
[Sahih al-Bukhari and Muslim]
From the Benefits of this hadith:
1. Allah, The Glorious, The Exalted, has prescribed a recompense for the good deeds and a recompense for the evil deeds. This is from His completion and of justice and precision regarding the affairs, The Majestic, Most High.
2. This distinction between intending to do a good deed and intending to do an evil deed. If a person intends to do a good deed but does not carry it out, Allah records it with Himself as a complete good deed. When he leaves off the action without an excuse, He records it with Himself as a complete good deed because of his intention. If it is from his norm to do the action but he leaves it due to an excuse, a complete reward is written for him because of his intention and action due to the hadith.
” Whoever is sick or travelling, it is written for him as if he was doing the action healthy and as a resident.”
As for the one who intends to do an evil deed but leaves it for the sake of Allah, The Mighty, The Majestic, it is written with Him as a complete good deed. If he leaves it, i.e. the evil deed because of his refraining himself and not for the sake of Allah, it is not written for him or against him. If he leaves it because he was incapacitated, the sin of doing it is written against him due to his intention. If he is in the midst of carrying it out but is prevented after striving for it, the punishment of the complete evil deed is recorded against him due to the statement of the Prophet (sal Allahu alaihi wa sallam) “If two Muslims meet each other with their swords then the killer and the murdered are in the Fire.” They said “O Messenger of Allah, this is the killer but why the murdered? ” He said ‘Because he was striving to kill the other” [Sahih al-Bukhari and Muslim]
And Allah Knows Best!