4:16
وَٱلَّذَانِ يَأْتِيَٰنِهَا مِنكُمْ فَـَٔاذُوهُمَا ۖ فَإِن تَابَا وَأَصْلَحَا فَأَعْرِضُوا۟ عَنْهُمَآ ۗ إِنَّ ٱللَّهَ كَانَ تَوَّابًۭا رَّحِيمًا
And the two who commit it among you, dishonor them both. But if they repent and correct themselves, leave them alone. Indeed, Allah is ever Accepting of repentance and Merciful.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
The Adulteress is Confined in her House; A Command Later Abrogated
At the begining of Islam, the ruling was that if a woman commits adultery as stipulated by sufficient proof, she was confined to her home, without leave, until she died. Allah said,
وَاللَـتِى يَأْتِينَ الْفَـحِشَةَ
يعني الزنا
مِن نِّسَآئِكُمْ فَاسْتَشْهِدُواْ عَلَيْهِنَّ أَرْبَعةً مِّنْكُمْ فَإِن شَهِدُواْ فَأَمْسِكُوهُنَّ فِى الْبُيُوتِ حَتَّى يَتَوَفَّاهُنَّ الْمَوْتُ أَوْ يَجْعَلَ اللَّهُ لَهُنَّ سَبِيلاً
(And those of your women who commit illegal sexual intercourse, take the evidence of four witnesses from among you against them; and if they testify, confine them (i.e. women) to houses until death comes to them or Allah ordains for them some (other) way.) `Some other way' mentioned here is the abrogation of this ruling that came later. Ibn `Abbas said, "The early ruling was confinement, until Allah sent down Surat An-Nur (chapter 24) which abrogated that ruling with the ruling of flogging (for fornication) or stoning to death (for adultery)." Similar was reported from `Ikrimah, Sa`id bin Jubayr, Al-Hasan, `Ata' Al-Khurasani, Abu Salih, Qatadah, Zayd bin Aslam and Ad-Dahhak, and this is a matter that is agreed upon. Imam Ahmad recorded that `Ubadah bin As-Samit said, "When the revelation descended upon the Messenger of Allah ﷺ , it would affect him and his face would show signs of strain. One day, Allah sent down a revelation to him, and when the Messenger was relieved of its strain, he said,