Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah says, 'When My servant intends to do an evil deed, do not record it against him until he does it. If he does it, record it as one evil deed. If he abandons it for My sake, record it for him as a good deed. And when he intends to do a good deed but does not do it, record it for him as a good deed. If he does it, record it for him as ten times its like, up to seven hundred times.'"

Bukhari 7501

Sahih

حدثنا قتيبة بن سعيد حدثنا المغيرة بن عبد الرحمن عن أبي الزناد عن الأعرج

عن أبي هريرة

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

البخاري 7501صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
His saying, "They want to change the words of Allah"
Numbering
Darussalam 7501
Bukhari 7501