Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever intends to do a good deed but does not carry it out, it is recorded for him as one good deed. Whoever intends to do a good deed and carries it out, it is recorded for him as ten up to seven hundred times its value. Whoever intends to do a bad deed but does not carry it out, nothing is recorded against him, but if he does carry it out, it is recorded against him."

Azami 15085

Sahih

عن أبي هريرة قال

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

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