Sahih Muslim
Sahih Muslim 128b
حَدَّثَنَا يَحْيَى بْنُ أَيُّوبَ، وَقُتَيْبَةُ، وَابْنُ، حُجْرٍ قَالُوا حَدَّثَنَا إِسْمَاعِيلُ، - وَهُوَ ابْنُ جَعْفَرٍ - عَنِ الْعَلاَءِ، عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ " قَالَ اللَّهُ عَزَّ وَجَلَّ إِذَا هَمَّ عَبْدِي بِحَسَنَةٍ وَلَمْ يَعْمَلْهَا كَتَبْتُهَا لَهُ حَسَنَةً فَإِنْ عَمِلَهَا كَتَبْتُهَا عَشْرَ حَسَنَاتٍ إِلَى سَبْعِمِائَةِ ضِعْفٍ وَإِذَا هَمَّ بِسَيِّئَةٍ وَلَمْ يَعْمَلْهَا لَمْ أَكْتُبْهَا عَلَيْهِ فَإِنْ عَمِلَهَا كَتَبْتُهَا سَيِّئَةً وَاحِدَةً " .
Yahya ibn Ayyub, Qutaybah, and Ibn Hujr narrated to us; they said: Isma'il—that is, Ibn Ja'far—narrated to us, from al-Ala, from his father, from Abu Hurayrah, from the Messenger of Allah (peace and blessings be upon him), who said that Allah, Mighty and Majestic, said: ‘When My servant intends to do a good deed but does not do it, I record one good deed for him. If he does it, I record it as ten good deeds, up to seven hundred times. When he intends to do an evil deed but does not do it, I do not record it against him; if he does it, I record one evil deed.’