Abu Hurairah and Zayd bin Khalid reported,

A man came to the Prophet ﷺ and said, "I implore you by Allah to judge between us according to the Book of Allah."His opponent, who had more understanding than him, stood up and said, "He has spoken truly. Judge between us according to the Book of Allah, and grant me permission to speak, Messenger of Allah."The Prophet ﷺ said, "Speak."He said, "My son was a hired worker for this man, and he committed adultery with his wife. I ransomed my son from him with one hundred sheep and a servant girl. Then I asked Some men of knowledge, and they informed me that my son must receive one hundred lashes and one year of banishment, and that this man's wife must be stoned."The Prophet ﷺ said, "By the One in whose hand is my soul, I will judge between you according to the Book of Allah. The hundred sheep and the servant girl are returned to you. Your son shall receive one hundred lashes and be banished for one year. Unays, go tomorrow to this man's wife, and if she confesses, then stone her."She confessed, and he stoned her.

Bukhari 6859-6860

Sahih

حدثنا محمد بن يوسف حدثنا ابن عيينة عن الزهري عن عبيد الله بن عبد الله بن عتبة

عن أبي هريرة وزيد بن خالد الجهني قالا

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

البخاري 6859-6860صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Legal punishments
Chapter
If the imam may order a man to carry out the hadd punishment in his absence
Numbering
Darussalam 6859-6860
Bukhari6859 6859-6860