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

Hilal bin Umaiya accused his wife before the Prophet ﷺ of committing illegal sexual intercourse with Sharik bin Sahma.' The Prophet ﷺ said, "Produce a proof, or else you would get the legal punishment (by being lashed) on your back." Hilal said, "O Messenger of Allah ﷺ! If anyone of us saw another man over his wife, would he go to search for a proof." The Prophet ﷺ went on saying, "Produce a proof or else you would get the legal punishment (by being lashed) on your back." The Prophet ﷺ then mentioned the narration of Lian (as in the Holy Book). (Surat-al-Nur: 24)  

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

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