Hadith 5986

(حديث مرفوع) حَدَّثَنَا عَبْدُ الصَّمَدِ ، حَدَّثَنَا حَمَّادٌ ، حَدَّثَنَا ثَابِتٌ ، عَنِ ابْنِ عُمَرَ ، أَنّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ لِرَجُلٍ : " فَعَلْتَ كَذَا وَكَذَا " ، فَقَالَ : لَا وَالَّذِي لَا إِلَهَ إِلَّا هُوَ يَا رَسُولَ اللَّهِ مَا فَعَلْتُ ، قَالَ : " بَلَى , قَدْ فَعَلْتَ ، وَلَكِنْ غُفِرَ لَكَ بِالْإِخْلَاصِ " .
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that once the Prophet (peace and blessings be upon him) asked a person, "Did you do this act?" He replied, "O Messenger of Allah! By Him besides whom there is no deity, I did not do this act." The Prophet (peace and blessings be upon him) said, "Indeed, you did do that act, but due to the sincerity with which you said 'La ilaha illallah,' you have been forgiven."
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 5986
Hadith Grading حکم دارالسلام: إسناده ضعيف لانقطاعه، ثابت لم يسمعه من ابن عمر.