Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:423Yaḥyá > ʿAbd al-Razzāq > Ibn Jurayj > Ibn Shihāb > Sahl b. Saʿd > a man

A man said, "O Messenger of Allah ﷺ! If a man finds another man with his wife, (committing adultery) should the husband kill him?" Later on I saw them (the man and his wife) doing Liʿan in the mosque (taking oaths, one accusing, and the other denying adultery).  

البخاري:٤٢٣حَدَّثَنَا يَحْيَى قَالَ أَخْبَرَنَا عَبْدُ الرَّزَّاقِ قَالَ أَخْبَرَنَا ابْنُ جُرَيْجٍ قَالَ أَخْبَرَنِي ابْنُ شِهَابٍ عَنْ سَهْلِ بْنِ سَعْدٍ أَنَّ رَجُلاً قَالَ

يَا رَسُولَ اللَّهِ أَرَأَيْتَ رَجُلاً وَجَدَ مَعَ امْرَأَتِهِ رَجُلاً أَيَقْتُلُهُ فَتَلاَعَنَا فِي الْمَسْجِدِ وَأَنَا شَاهِدٌ  


See similar narrations below:

Collected by Bukhārī
bukhari:7166Yaḥyá > ʿAbd al-Razzāq > Ibn Jurayj > Ibn Shihāb > Sahl Akhī Banī Sāʿidah

(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.  

البخاري:٧١٦٦حَدَّثَنَا يَحْيَى حَدَّثَنَا عَبْدُ الرَّزَّاقِ أَخْبَرَنَا ابْنُ جُرَيْجٍ أَخْبَرَنِي ابْنُ شِهَابٍ عَنْ سَهْلٍ أَخِي بَنِي سَاعِدَةَ

أَنَّ رَجُلاً مِنَ الأَنْصَارِ جَاءَ إِلَى النَّبِيِّ ﷺ فَقَالَ أَرَأَيْتَ رَجُلاً وَجَدَ مَعَ امْرَأَتِهِ رَجُلاً أَيَقْتُلُهُ فَتَلاَعَنَا فِي الْمَسْجِدِ وَأَنَا شَاهِدٌ