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.
bayhaqi:16906Abū ʿAbdullāh al-Ḥāfiẓ And ʾAbū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Ibrāhīm b. Marzūq > Abū ʿĀṣim > ʿĪsá > Ibn Abū Najīḥ

[Machine] About Mujahid's saying, "And those of your women who commit illegal sexual intercourse..." [An-Nisa 15], he said that the punishment for adultery was that they be confined until four witnesses testified against them, "Until death takes them or Allah provides for them a way." [An-Nisa 15] The prescribed punishment is...  

البيهقي:١٦٩٠٦وَأَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ وَأَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو قَالَا ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا إِبْرَاهِيمُ بْنُ مَرْزُوقٍ ثنا أَبُو عَاصِمٍ عَنْ عِيسَى عَنِ ابْنِ أَبِي نَجِيحٍ

عَنْ مُجَاهِدٍ فِي قَوْلِهِ {وَاللَّاتِي يَأْتِينَ الْفَاحِشَةَ مِنْ نِسَائِكُمْ} [النساء 15] قَالَ الزِّنَا قَالَ كَانَ أَمَرَ أَنْ يُحْبَسْنَ يَعْنِي حَتَّى يَشْهَدَ عَلَيْهِنَّ أَرْبَعَةٌ {حَتَّى يَتَوَفَّاهُنَّ الْمَوْتُ أَوْ يَجْعَلَ اللهُ لَهُنَّ سَبِيلًا} [النساء 15] الْحُدُودُ  


See similar narrations below:

Collected by Qurʾān
quran:4:15

Those who commit unlawful sexual intercourse of your women - bring against them four ˹witnesses˺ from among you. And if they testify, confine the guilty women to houses until death takes them or Allah ordains for them ˹another˺ way.  

As for those of your women who commit lewdness, adultery, call four, Muslim men, of you to witness against them; and if they witness, against them such ˹lewdness˺, then detain them in their houses, and prevent them from mixing with people, until, the angels of, death take them or, until, God appoints for them a way, out of it. This was stipulated for them at the very beginning of Islam, but then a way out was appointed for them through ˹the stipulation˺ that the virgin should receive a hundred lashes and be banished for a year, and the married woman be stoned. The prescribed punishment was explained thus in the hadīth, ‘Come listen to me! Come listen to me! God has now made a way out for them’, as reported by Muslim.
القرآن:٤:١٥

وَاللَّاتِي يَأْتِينَ الْفَاحِشَةَ مِنْ نِسَائِكُمْ فَاسْتَشْهِدُوا عَلَيْهِنَّ أَرْبَعَةً مِنْكُمْ ۖ فَإِنْ شَهِدُوا فَأَمْسِكُوهُنَّ فِي الْبُيُوتِ حَتَّىٰ يَتَوَفَّاهُنَّ الْمَوْتُ أَوْ يَجْعَلَ اللَّهُ لَهُنَّ سَبِيلًا  

(واللاتي يأتين الفاحشة) الزنا (من نسائكم فاستشهدوا عليهن أربعة منكم) أي من رجالكم المسلمين (فإن شهدوا) عليهن بها (فأمسكوهن) احبسوهن (في البيوت) وامنعوهن من مخالطة الناس (حتى يتوفاهن الموت) أي ملائكته (أو) إلى أن (يجعل الله لهن سبيلا) طريقا إلى الخروج منها أمروا بذلك أول الإسلام ثم جعل لهن سبيلا بجلد البكر مائة وتغريبها عاما ورجم المحصنة، وفي الحديث لما بين الحد قال "" خذوا عني خذوا عني قد جعل الله لهن سبيلا "" رواه مسلم.