Narrated from Sayyiduna Zaid bin Khalid Al-Juhani (may Allah be pleased with him) and Abu Hurairah (may Allah be pleased with him) that we were with the Messenger of Allah (ﷺ), when a man stood up and said, "O Messenger of Allah (ﷺ), judge between us according to the Book of Allah." Then the opposing party, who was more understanding, said, "O Messenger of Allah (ﷺ), he has spoken the truth, judge between us according to the Book of Allah, and allow me to speak." The Prophet (ﷺ) said, "Speak." He said, "My son was working as a laborer for this man, and he committed adultery with his wife. In compensation, I gave one hundred sheep and a slave. Then I asked the people of knowledge about the matter, and they informed me that my son should receive one hundred lashes and be exiled for a year, and his wife should be stoned." So the Prophet (ﷺ) said, "By Him in Whose hand is my soul, I will judge between you according to the Book of Allah. The one hundred sheep and the slave will be returned to you, your son will receive one hundred lashes and be exiled for a year." Then the Messenger of Allah (ﷺ) said, "Anis! (may Allah be pleased with him), who was from Banu Aslam, go to the woman, and if she confesses to the crime, then stone her." Sayyiduna Anis (may Allah be pleased with him) went, and the woman confessed to the crime, so he stoned her. Sufyan (may Allah have mercy on him) says, "'Aseef' means laborer."
Hadith Referenceالسنن المأثورة / باب الحدود / 522
Hadith Takhrijصحیح بخاری، الحدود، باب الاعتراف بالزنا، رقم: 6828، صحیح مسلم، الحدود، باب من اعترف علی نفسہ بالزنی، رقم: 1698