حَدَّثَنَا أَبُو الرَّبِيعِ ، حَدَّثَنَا الْحَارِثُ ، عَنْ ثَابِتٍ ، عَنْ أَنَسٍ ، قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ لِرَجُلٍ : يَا فُلَانُ ، أَفَعَلْتَ كَذَا وَكَذَا ؟ قَالَ : لَا وَاللهِ الَّذِي لَا إِلَهَ إِلَّا هُوَ ، مَا فَعَلْتُ ، وَرَسُولُ اللهِ يَعْلَمُ أَنَّهُ فَعَلَهُ ، فَقَالَ لَهُ : لَقَدْ كَفَّرَ اللهُ عَنْكَ كَذِبَكَ بِتَصْدِيقِكَ بِلَا إِلَهَ إِلَّا اللهُ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) asked a man: "O so-and-so, did you do such-and-such?" He said: "No, by Allah, besides whom there is no god worthy of worship, I did not do it," although the Messenger of Allah (peace and blessings be upon him) knew that he had done it. So he (peace and blessings be upon him) said to him: "Indeed, Allah Almighty has expiated your lie (that is, forgiven it) because of your truthful testimony to 'La ilaha illallah' (there is no god but Allah)."