Sahih al-Bukhari, Book 93, Hadith 30 (Bukhari 6897)
Narrated Sahl:
(the brother of Bani Sa`ida) A man from the Ansar came to the Prophet (ﷺ) and said, "If a man finds another man sleeping with his wife, should he kill him?" That man and his wife then did Lian in the mosque while I was present.