It is narrated from Sayyiduna Khuzaymah bin Thabit (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever commits a sin and then the legal punishment (hadd) for that (sin) is carried out on him, it is an expiation for him." Abu Ya'la al-Mawsili also narrated it. This hadith has a supporting narration in the two Sahihs and other books from Sayyiduna Ubadah bin al-Samit (may Allah be pleased with him); and our Shaykh, al-Hafiz Abu al-Hasan al-Haythami, counted this hadith of Sayyiduna Ubadah (may Allah be pleased with him) in Zawa'id Ibn Hibban as additional to the two Sahihs, whereas he erred in this. Imam al-Tirmidhi and Imam Ibn Majah also recorded it from the narration of Sayyiduna Ali bin Abi Talib (may Allah be pleased with him).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب الحدود / 3536
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لإبهام شيخ ابن أبي شيبة (حُدِّثت عن روح)
Hadith Takhrij«ورواه أبو يعلى عن زهير عن روح موصولًا وإسناده حسن: أسامة بن زيد الليثي صدوق يهم (من الحفظ)؛ وابن خزيمة بن ثابت هو عمارة ثقة (من الحفظ)؛ وله شاهد في الصحيحين من حديث عبادة بن الصامت» «أخرجه مسند أحمد برقم: 21369، وأخرجه سنن الدارمي برقم: 2331، وأخرجه فتح الباري برقم: 18، وأخرجه المعجم الكبير للطبراني برقم: 3732، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 10595»