Narrated Abu Huraira and Zaid bin Khalid: While we were with the Prophet , a man stood up and said (to the Prophet ), I beseech you by Allah, that you should judge us according to Allah's Laws. Then the man's opponent who was wiser than him, got up saying (to Allah's Apostle) Judge us according to Allah's Law and kindly allow me (to speak). The Prophet said, 'Speak. He said, My son was a laborer working for this man and he committed an illegal sexual intercourse with his wife, and I gave one-hundred sheep and a slave as a ransom for my son's sin. Then I asked a learned man about this case and he informed me that my son should receive one hundred lashes and be exiled for one year, and the man's wife should be stoned to death. The Prophet said, By Him in Whose Hand my soul is, I will judge you according to the Laws of Allah. Your one-hundred sheep and the slave are to be returned to you, and your son has to receive one-hundred lashes and be exiled for one year. O Unais! Go to the wife of this man, and if she confesses, then stone her to death. Unais went to her and she confessed. He then stoned her to death.