(18) باب مَنْ قَضَى وَلاَعَنَ فِي الْمَسْجِدِ
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.
Reference: Sahih al-Bukhari 7166
In-book reference: Book 93, Hadith 30
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 89, Hadith 279