Abu Umama reported,

A man came to the Prophet ﷺ and said, "Messenger of Allah, I have committed an offense that requires a prescribed punishment, so carry it out on me."The Prophet ﷺ asked, "Did you perform ablution when you came?"The man replied, "Yes."He asked, "Did you pray with us when we prayed?"The man replied, "Yes."The Prophet ﷺ said, "Go, for Allah Most High has pardoned you."

Abu Dawud 4381

Sahih

حدثنا محمود بن خالد حدثنا عمر بن عبد الواحد عن الأوزاعي قال حدثني أبو عمار

حدثني أبو أمامة

أن رجلا أتى النبي ﷺ فقال يا رسول الله إني أصبت حدا فأقمه علي قال توضأت حين أقبلت قال نعم قال هل صليت معنا حين صلينا قال نعم قال اذهب فإن الله تعالى قد عفا عنك

أبو داود 4381صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Legal punishments
Chapter
A man who confesses to a hadd offense without specifying it
Numbering
Darussalam 4381
Abu Dawud 4381