[Machine] The Messenger of Allah ﷺ said to a man, "O Fulan, did you do such and such?" The man replied, "No, by Allah, the One whom there is no deity but Him, I did not do it." The Messenger of Allah ﷺ knew that he had indeed done it. He repeated this to him several times, and each time the man would swear by Allah. The Messenger of Allah ﷺ said, "May Allah absolve you of your lie because of your truthfulness to 'La ilaha illallah' (There is no deity but Allah)." And it is narrated on the authority of Thabit from Ibn 'Umar.
قَالَ رَسُولُ اللهِ ﷺ لِرَجُلٍ يَا فُلَانُ فَعَلْتَ كَذَا وَكَذَا ؟ قَالَ لَا وَاللهِ الَّذِي لَا إِلَهَ إِلَّا هُوَ مَا فَعَلْتُهُ قَالَ وَرَسُولُ اللهِ ﷺ يَعْلَمُ أَنَّهُ قَدْ فَعَلَهُ قَالَ وَكَرَرَ ذَلِكَ عَلَيْهِ مِرَارًا كُلُّ ذَلِكَ يَحْلِفُ قَالَ رَسُولُ اللهِ ﷺ كَفَّرَ اللهُ عَنْكَ كَذِبَكَ بِصِدْقِكَ بِلَا إِلَهَ إِلَّا اللهُ وَقِيلَ عَنْ ثَابِتٍ عَنِ ابْنِ عُمَرَ