Abdullah bin Abbas reported,

The Prophet ﷺ, narrating from his Lord عز وجل, said, "Allah has recorded good deeds and bad deeds," then He explained that."Whoever intends a good deed but does not do it, Allah records it with Him as one complete good deed. If he intends it and does it, Allah records it with Him as ten good deeds, up to seven hundred times, up to many times more.Whoever intends a bad deed but does not do it, Allah records it with Him as one complete good deed. If he intends it and does it, Allah records it as a single bad deed."

Azami 15079

Sahih

عن ابن عباس

عن النبي ﷺ فيما يروي عن ربه عز وجل قال: إن الله كتب الحسنات والسيئات، ثم بين ذلك، فمن هم بحسنة فلم يعملها كتبها الله له عنده حسنة كاملة، فإن هو هم بها فعملها كتبها الله له عنده عشر حسنات إلى سبعمائة ضعف إلى أضعاف كثيرة. ومن هم بسيئة فلم يعملها كتبها الله له عنده حسنة كاملة، فإن هو هم بها فعملها كتبها الله له سيئة واحدة.

الأعظمي 15079صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Asceticism and softening of the heart
Chapter
Virtue of asceticism and softening of hearts
Section
If a servant intends a good deed it is recorded, and if he intends a bad deed it is not recorded
Numbering
Jami al-Kamil 15079 (2nd edition)
Azami 15079