It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that Allah Almighty (says to His angels): If any of My servants intends to do a good deed, then record it. Then if he acts upon it, record it multiplied by ten. And if he intends to commit a sin, do not record it. If he commits the sin, then record only one sin. And if he refrains from it, then record one good deed.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 7296