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)."
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 3368
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده ضعيف . » «قال سعيد بن محمد السناري: صحيح» «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 16811، 16812، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 6903، وأخرجه إتحاف الخيرة المهرة بزوائد المسانيد العشرة برقم: 4830/1، 6103/1، مسند ابویعلیٰ ترقیم الاثری: 3355»