Abu Hurairah reported,

A man from the Muslims came to the Messenger of Allah ﷺ while he was in the mosque and called out to him, saying, "Messenger of Allah, I have committed adultery."The Prophet turned away from him. The man moved around to face him again and said, "Messenger of Allah, I have committed adultery."The Prophet turned away from him once more. The man repeated this until he had testified against himself four times.After he had borne witness against himself four times, the Messenger of Allah ﷺ called him over and asked, "Are you mad?"He replied, "No."The Prophet asked, "Have you been married?"He answered, "Yes."The Messenger of Allah ﷺ then said, "Take him away and stone him."Ibn Shihab said, Someone who heard Jabir bin Abdullah informed me that he said, "I was among those who stoned him. We stoned him at the prayer ground, and when the stones tormented him, he fled. We caught up with him at al-Harrah and stoned him there."

Ahmad 9845

Sahih

حدثنا حجاج قال حدثني ليث قال حدثني عقيل عن ابن شهاب عن أبي سلمة بن عبد الرحمن وسعيد بن المسيب

عن أبي هريرة أنه قال

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

أحمد 9845صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abu Hurairah
Numbering
Darussalam 9845
Ahmad 9845