Abu Hurairah reported,

The Messenger of Allah ﷺ said that Allah عز وجل, whose word is truth, said, "When My servant intends to do a good deed, record it for him as one good deed. If he carries it out, record it for him tenfold. When he intends to do an evil deed, do not record it. If he carries it out, record it as a single evil deed. If he refrains from it" — and sometimes he said, "if he does not act upon it" — "then record it for him as a good deed."Then he recited, "Whoever brings a good deed shall have ten times its like" [Anam 6:160].

Tirmidhi 3073

Sahih

حدثنا ابن أبي عمر حدثنا سفيان عن أبي الزناد عن الأعرج

عن أبي هريرة

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

الترمذي 3073صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tafsir of the Quran
Chapter
From Surah Anam
Numbering
Darussalam 3073
Tirmidhi 3073