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:5313Ibrāhīm b. al-Mundhir > Anas b. ʿIyāḍ > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

Messenger of Allah ﷺ separated (divorced) the wife from her husband who accused her for an illegal sexual intercourse, and made them take the oath of Lian .  

البخاري:٥٣١٣حَدَّثَنِي إِبْرَاهِيمُ بْنُ الْمُنْذِرِ حَدَّثَنَا أَنَسُ بْنُ عِيَاضٍ عَنْ عُبَيْدِ اللَّهِ عَنْ نَافِعٍ أَنَّ ابْنَ عُمَرَ ؓ

أَخْبَرَهُ أَنَّ رَسُولَ اللَّهِ ﷺ فَرَّقَ بَيْنَ رَجُلٍ وَامْرَأَةٍ قَذَفَهَا وَأَحْلَفَهُمَا  


See similar narrations below:

Collected by Bukhārī
bukhari:5306Mūsá b. Ismāʿīl > Jūwayriyah > Nāfiʿ > ʿAbdullāh

An Ansari man accused his wife (of committing illegal sexual intercourse). The Prophet ﷺ made both of them takes the oath of Lian, and separated them from each other (by divorce).  

البخاري:٥٣٠٦حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلُ حَدَّثَنَا جُوَيْرِيَةُ عَنْ نَافِعٍ عَنْ عَبْدِ اللَّهِ ؓ

أَنَّ رَجُلاً مِنَ الأَنْصَارِ قَذَفَ امْرَأَتَهُ فَأَحْلَفَهُمَا النَّبِيُّ ﷺ ثُمَّ فَرَّقَ بَيْنَهُمَا