Sahih al-Bukhari Book 86, Hadith 65
Two men had a dispute in the presence of Allah's Messenger (ﷺ). One of them said, "Judge us according to
Allah's Laws." The other who was more wise said, "Yes, Allah's Messenger (ﷺ), judge us according to
Allah's Laws and allow me to speak (first)" The Prophet (ﷺ) said to him, 'Speak " He said, "My son was a
laborer for this man, and he committed illegal sexual intercourse with his wife, and the people told me
that my son should be stoned to death, but I have given one-hundred sheep and a slave girl as a
ransom (expiation) for my son's sin. Then I asked the religious learned people (about It), and they told
me that my son should he flogged one-hundred stripes and should be exiled for one year, and only the
wife of this man should be stoned to death " Allah's Messenger (ﷺ) said, "By Him in Whose Hand my soul is,
I will judge you according to Allah's Laws: O man, as for your sheep and slave girl, they are to be
returned to you." Then the Prophet (ﷺ) had the man's son flogged one hundred stripes and exiled for one
year, and ordered Unais Al-Aslami to go to the wife of the other man, and if she confessed, stone her
to death. She confessed and was stoned to death.
The jews came to Allah's Messenger (ﷺ) and mentioned to him that a man and a lady among them had committed illegal sexual intercourse. Allah's Messenger (ﷺ) said to them, "What do you find in the Torah regarding the Rajam?" They replied, "We only disgrace and flog them with stripes." `Abdullah bin Salam said to them, 'You have told a lie the penalty of Rajam is in the Torah.' They brought the Torah and opened it. One of them put his hand over the verse of the Rajam and read what was before and after it. `Abdullah bin Salam said to him, "Lift up your hand." Where he lifted it there appeared the verse of the Rajam. So they said, "O Muhammad! He has said the truth, the verse of the Rajam is in it (Torah)." Then Allah's Messenger (ﷺ) ordered that the two persons (guilty of illegal sexual intercourse) be stoned to death, and so they were stoned, and I saw the man bending over the woman so as to protect her from the stones.
Abu Bakr came to me while Allah's Messenger (ﷺ) was sleeping with his head on my thigh. Abu Bakr said (to me), "You have detained Allah's Messenger (ﷺ) and the people, and there is no water in this place." So he admonished me and struck my flanks with his hand, and nothing could stop me from moving except the reclining of Allah's Messenger (ﷺ) (on my thigh), and then Allah revealed the Divine Verse of Tayammum.