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:5307Muḥammad b. Bashhār > Ibn Abū ʿAdī > Hishām b. Ḥassān > ʿIkrimah > Ibn ʿAbbās

Hilal bin Umaiyya accused his wife of illegal sexual intercourse and came to the Prophet ﷺ to bear witness (against her), (taking the oath of Lian). The Prophet ﷺ was saying, "Allah knows that either of you is a liar. Will anyone of you repent (to Allah)?" Then the lady got up and gave her witness.  

البخاري:٥٣٠٧حَدَّثَنِي مُحَمَّدُ بْنُ بَشَّارٍ حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ عَنْ هِشَامِ بْنِ حَسَّانَ حَدَّثَنَا عِكْرِمَةُ عَنِ ابْنِ عَبَّاسٍ ؓ

أَنَّ هِلاَلَ بْنَ أُمَيَّةَ قَذَفَ امْرَأَتَهُ فَجَاءَ فَشَهِدَ وَالنَّبِيُّ ﷺ يَقُولُ إِنَّ اللَّهَ يَعْلَمُ أَنَّ أَحَدَكُمَا كَاذِبٌ فَهَلْ مِنْكُمَا تَائِبٌ ثُمَّ قَامَتْ فَشَهِدَتْ  


See similar narrations below:

Collected by Suyūṭī
suyuti:5282a
Request/Fix translation

  

السيوطي:٥٢٨٢a

"إِنَّ الله يَعْلَمُ أنَّ أحَدَكُمَا كَاذِبٌ! فَهَلْ مِنكُمَا تَائِبٌ؟ قَالهُ لِلمُتَلاعِنَين".  

[خ] البخاري [م] مسلم عن ابن عمر، [خ] البخاري عن ابن عباس