Anas bin Malik reported,

A Jewish man crushed the head of a young girl between two stones. She was asked, "Who did this to you? Was it so-and-so, or so-and-so?" until the Jewish man was named. He was brought to the Prophet ﷺ, who kept questioning him until he confessed, and then his head was crushed with stones.

Bukhari 6876

Sahih

حدثنا حجاج بن منهال حدثنا همام عن قتادة

عن أنس بن مالك رضي الله عنه

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

البخاري 6876صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Blood money
Chapter
Questioning the killer until he confesses, and confession in legal punishments
Numbering
Darussalam 6876
Bukhari 6876