It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever intends a good deed but does not manage to do it, one good deed is written for him; and if he does it, ten are written, and (Allah increases it beyond that) as much as Allah wills. And whoever intends an evil deed but does not do it, (no sin) is written against him; and if he does it, only one evil deed is written against him, or Allah erases it."
Imam al-Tabarani (may Allah have mercy on him) said: "This hadith was narrated from Mansur bin Zadhan only by Hushaym, and from Hushaym only by al-Qasim and Amr bin Awn."
Hadith Referenceالمعجم الأوسط / باب العين / 4140
Hadith Takhrij«أخرجه البخاري فى «صحيحه» برقم: 42، 7501، ومسلم فى «صحيحه» برقم: 128، 129، 130، وابن حبان فى «صحيحه» برقم: 228، 379، 380، 381، 382، 383، 384، والنسائي فى «السنن الكبرى» برقم: 11117، والترمذي فى «جامعه» برقم: 3073، وأحمد فى «مسنده» برقم: 7316، 7416، 8282، 8334، 8336، 9449، 10612، وأبو يعلى فى «مسنده» برقم: 6282، 6500، والبزار فى «مسنده» برقم: 8869، 9928، وعبد الرزاق فى «مصنفه» برقم: 20557، والطحاوي فى «شرح مشكل الآثار» برقم: 1641، والطبراني فى «الأوسط» برقم: 4390»