Abu Hurairah reported,

The Prophet ﷺ said that Allah عز وجل said, "When My servant intends to do a good deed, I record it as one good deed for him as long as he has not done it. When he carries it out, I record it as ten times its like. And when he intends to do a bad deed, I forgive it for him as long as he has not done it. When he carries it out, I record it as one of its like."

Azami 15083

Sahih

عن أبي هريرة

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

الأعظمي 15083صحيح
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 15083 (2nd edition)