كتاب المقدمات
The Book of Miscellany
(1)
Chapter: Sincerity and Significance of Intentions and all Actions, Apparent and Hidden
(1)
- باب الإخلاص وإحضارالنية
Riyad as-Salihin 11
'Abdullah bin 'Abbas (May Allah be pleased with them) reported:
Messenger of Allah (ﷺ) said that Allah, the Glorious, said: "Verily, Allah (SWT) has ordered that the good and the bad deeds be written down. Then He explained it clearly how (to write): He who intends to do a good deed but he does not do it, then Allah records it for him as a full good deed, but if he carries out his intention, then Allah the Exalted, writes it down for him as from ten to seven hundred folds, and even more. But if he intends to do an evil act and has not done it, then Allah writes it down with Him as a full good deed, but if he intends it and has done it, Allah writes it down as one bad deed".

[Al-Bukhari and Muslim].

وعن أبي العباس عبد الله بن عباس بن عبد المطلب رضي الله عنهما، عن رسول الله، صلى الله عليه وسلم، فيما يروى عن ربه، تبارك وتعالى قال‏:‏ ‏ "‏ إن الله كتب الحسنات والسيئات ثم بين ذلك‏:‏ فمن همّ بحسنة فلم يعملها كتبها الله تبارك وتعالى عنده حسنة كاملة، وإن هم بها فعملها كتبها الله عشر حسنات إلى سبعمائه ضعف إلى أضعاف كثيرة، وإن هم بسيئة فلم يعملها كتبها الله عنده حسنة كاملة، وإن همّ بها فعملها كتبها الله سيئة واحدة ‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏
Reference : Riyad as-Salihin 11
In-book reference : Introduction, Hadith 11