Page 80
wa-llātī yaʾtīna l-fāḥishata min nisāʾikum fa-stashhidū ʿalayhinna ʾarbaʿatan minkum fa-ʾin shahidū fa-ʾamsikūhunna fī l-buyūti ḥattā yatawaffāhunna l-mawtu ʾaw yajʿala llāhu lahunna sabīlan
Should any of your women commit an indecent act, produce against them four witnesses from yourselves, and if they testify, detain them in [their] houses until death finishes them, or Allah decrees a course for them.
— Ali Quli Qarai
Surah An-Nisa',Verse 15
15. "And as for those of your women who are guilty of lewdness, call to witness four of you (Muslims) against them; then if they bear witness (to the fact), confine them to the houses until death takes them away or Allah makes some way for them."
The punishment of filthy women who have husband and are polluted with lewdness is pointed out in the above verse, where it says:
Then, the verse continues saying:
Thus, the punishment of lewdness for the women who have husband has been assigned 'life imprisonment' in this verse. But, immediately after that, it says:
From the above mentioned sense, it is understood that this ordinance had been a temporary ordinance, because later the holy Prophet (S) issued the divine ordinance of 'stoning', the explanation of which is found in Islamic literature and the books of jurisprudence where you may refer to it.