Hasan (may Allah have mercy on him) said: In the beginning, the punishment of a woman who committed adultery was confinement in the house, which is mentioned in verse 15 of Surah al-Nisa [Surah al-Nisa: 15]; then Allah Almighty abrogated it with: "The woman and the man guilty of fornication, flog each one of them with a hundred lashes" [Surah al-Nur: 2].
Sayyiduna Ubadah (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) said: "Take this from me: Allah Almighty has shown a way for them: for the unmarried, a hundred lashes and exile for one year, and for the married, a hundred lashes and stoning with stones."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 16908