Abdullah bin Abbas reported,

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

Bukhari 6491

Sahih

حدثنا أبو معمر حدثنا عبد الوارث حدثنا جعد بن دينار أبو عثمان حدثنا أبو رجاء العطاردي

عن ابن عباس رضي الله عنهما

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

البخاري 6491صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Softening of hearts
Chapter
Whoever intends a good deed or a bad deed
Numbering
Darussalam 6491
Bukhari 6491