It is narrated from Sayyiduna Khuzaymah bin Thabit (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Whoever commits a sin and then the prescribed punishment for that sin is carried out upon him, then that will be an expiation for him.
Hadith Referenceالفتح الربانی / مسائل الحدود / 6632
Hadith Gradingمحدثین:صحیح
Hadith Takhrij«صحيح لغيره۔ أخرجه ابن ابي شيبة في ’’مسنده‘‘: 4780، وابو يعلي: 4781، والطبراني: 3728، والبيھقي: 8/ 328 ، (انظر مسند أحمد ترقيم الرسالة: 21876 ترقیم بيت الأفكار الدولية: 22220»
Brief Explanation
Benefits: … If someone commits a sin that warrants a prescribed punishment (hadd), and that punishment is carried out upon him, then this hadd becomes an expiation (kaffarah) for his sin.