Sahih al-Bukhari Book 87, Hadith 16
A girl wearing ornaments, went out at Medina. Somebody struck her with a stone. She was brought to
the Prophet (ﷺ) while she was still alive. Allah's Messenger (ﷺ) asked her, "Did such-and-such a person strike
you?" She raised her head, denying that. He asked her a second time, saying, "Did so-and-so strike
you?" She raised her head, denying that. He said for the third time, "Did so-and-so strike you?" She
lowered her head, agreeing. Allah's Messenger (ﷺ) then sent for the killer and killed him between two stones.
A Jew crushed the head of a girl between two stones, and the girl was asked, "Who has done that to you, so-and-so or so and so?" (Some names were mentioned for her) till the name of that Jew was mentioned (whereupon she agreed). The Jew was brought to the Prophet (ﷺ) and the Prophet (ﷺ) kept on questioning him till he confessed, whereupon his head was crushed with stones.
Allah's Messenger (ﷺ) said, "The blood of a Muslim who confesses that none has the right to be worshipped but Allah and that I am His Apostle, cannot be shed except in three cases: In Qisas for murder, a married person who commits illegal sexual intercourse and the one who reverts from Islam (apostate) and leaves the Muslims."