It is narrated from Sayyiduna Zayd bin Khalid al-Juhani (may Allah be pleased with him) that two men came to the Messenger of Allah (peace and blessings be upon him), and one of them said: O Messenger of Allah! I adjure you to judge between me and this man according to the Book of Allah, and permit me (to speak). He said: My son was a hired worker for this man, and he committed adultery with his wife. I was told that stoning was due upon my son, so I ransomed him with a hundred sheep and a slave girl. Then I asked the people of knowledge, and they told me that upon my son are a hundred lashes and exile for a year, and that stoning is due upon this man's wife. The Prophet (peace and blessings be upon him) said: "By the One in whose hand is my soul! I shall judge between you two only according to the Book of Allah: the slave girl and the sheep are returned to you, and upon your son are a hundred lashes and exile for a year." And he said: "O Unays! Go in the morning to this man's wife; if she confesses, stone her." So he went to her in the morning, and she confessed, and he stoned her.
Hadith Referenceالمعجم الكبير للطبراني / باب الزاي / 5181