عَنْ أَنَسٍ : أَنَّ رَسُولَ اللَّهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ - قَالَ : " مَنْ هَمَّ بِحَسَنَةٍ فَلَمْ يَعْمَلْهَا كُتِبَتْ لَهُ حَسَنَةً ، فَإِنْ عَمِلَهَا كُتِبَتْ لَهُ عَشْرًا ، وَمَنْ هَمَّ بِسَيِّئَةٍ فَلَمْ يَعْمَلْهَا لَمْ يُكْتَبْ عَلَيْهِ شَيْءٌ ، فَإِنْ عَمِلَهَا كُتِبَتْ سَيِّئَةً وَاحِدَةً " . رَوَاهُ أَبُو يَعْلَى ، وَرِجَالُهُ رِجَالُ الصَّحِيحِ .
Sayyiduna Anas (may Allah be pleased with him) transmits this statement of the Prophet (peace and blessings be upon him): "Whoever intends a good deed and does not act on it, one good deed is recorded for him; and if he acts on it, ten good deeds are recorded for him. And whoever intends an evil deed and does not act on it, nothing is recorded against him; and if he acts on it, one evil deed is recorded against him."
Abu Ya'la recorded it, and its narrators are the narrators of the Sahih.