Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) said: "And those of your women who commit immorality, call four witnesses against them from among you; and if they testify, confine them to the houses until death takes them or Allah makes for them a way." Then He mentioned the man after the woman and, mentioning them both together, said: "And the two among you who commit it, punish them both; but if they repent and correct themselves, leave them alone." Then this ruling was abrogated by the verse of flogging, as He said: "The fornicatress and the fornicator, flog each one of them with a hundred lashes."
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
In the early days of Islam, before the prescribed punishment (hadd) for adultery was revealed, this was the ruling: that immoral women or men should be given a general punishment and women should be confined to their homes.
Later, the well-known prescribed punishment (hadd) was revealed.
And in those countries where the Islamic legal punishments (hudud) are not implemented, this ruling can be acted upon.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 4413