An-Nisa 4:15
وَٱلَّـٰتِى يَأْتِينَ ٱلْفَـٰحِشَةَ مِن نِّسَآئِكُمْ فَٱسْتَشْهِدُوا۟ عَلَيْهِنَّ أَرْبَعَةً مِّنكُمْ ۖ فَإِن شَهِدُوا۟ فَأَمْسِكُوهُنَّ فِى ٱلْبُيُوتِ حَتَّىٰ يَتَوَفَّىٰهُنَّ ٱلْمَوْتُ أَوْ يَجْعَلَ ٱللَّهُ لَهُنَّ سَبِيلًا
Wallatee ya/teena alfahishatamin nisa-ikum fastashhidoo AAalayhinna arbaAAatanminkum fa-in shahidoo faamsikoohunna fee albuyooti hattayatawaffahunna almawtu aw yajAAala Allahu lahunnasabeela
Those who commit immorality [i.e., unlawful sexual intercourse] of your women - bring against them four [witnesses] from among you. And if they testify, confine them [i.e., the guilty women] to houses until death takes them or Allāh ordains for them [another] way.
Those of your women who commit the shameful act, have four witnesses (against them) from among you. So, if they testify, then confine those women to their homes until death overcomes them, or Allah prescribes a way for them.