Abu Saeed Khudri reported,

A man from the tribe of Aslam called Maez bin Malik came to the Messenger of Allah ﷺ and said, "I have committed an immoral act, so carry out the prescribed punishment on me."The Prophet ﷺ turned him away several times. Then he asked his people about him, and they said, "We know nothing wrong about him, except that he has committed something he believes nothing can free him from except having the prescribed punishment carried out on him."So Maez returned to the Prophet ﷺ, and the Prophet ordered us to stone him. We took him to Baqi al-Gharqad. We did not tie him up nor dig a pit for him. We threw bones, clods of dirt, and pieces of pottery at him. He ran off, and we ran after him until he reached the open ground of the Harrah, where he turned to face us. We then pelted him with the large stones of the Harrah until he died.Then the Messenger of Allah ﷺ stood to address the people that evening and said, "Whenever we set out on a military expedition in the path of Allah, one of our men stays behind with our families, bleating like a male goat. I swear that any man brought to me who has done such a thing, I will surely make an example of him."He neither asked forgiveness for Maez nor cursed him.

Azami 6952

Sahih

عن أبي سعيد

أن رجلا من أسلم يقال له: ماعز بن مالك، أتى رسول الله ﷺ فقال: إني أصبت فاحشة فأقمه علي، فرده النبي ﷺ مرارا. قال: ثم سأل قومه؟ فقالوا: ما نعلم به بأسا إلا أنه أصاب شيئا، يرى أنه لا يخرجه منه إلا أن يقام فيه الحد. قال: فرجع إلى النبي ﷺ فأمرنا أن نرجمه. قال: فانطلقنا به إلى بقيع الغرقد. قال: فما أوثقناه ولا حفرنا له. قال: فرميناه بالعظم والمدر والخزف. قال: فاشتد واشتددنا خلفه، حتى أتى عرض الحرة فانتصب لنا، فرميناه بجلاميد الحرة (يعني الحجارة) قال: ثم قام رسول الله ﷺ الخطيبا من العشي فقال: أو كلما انطلقنا غزاة في سبيل الله، تخلف رجل في عيالنا، له نبيب كنبيب التيس، علي أن لا أوتى برجل فعل ذلك إلا نكلت به قال: فما استغفر له ولا سبه.

الأعظمي 6952صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Legal punishments
Chapter
Hadd of zina
Section
Stoning of Maez bin Malik
Numbering
Jami al-Kamil 6952 (2nd edition)
Azami 6952