Sahih al-Bukhari, Book 40, Hadith 14 (Bukhari 2226)
Narrated Zaid bin Khalid and Abu Huraira:
The Prophet (ﷺ) said, "O Unais! Go to the wife of this (man) and if she confesses (that she has committed illegal sexual intercourse), then stone her to death."