Mujahid (may Allah have mercy on him) said concerning the words of Allah Almighty, "And those of your women who commit immorality" [Surah al-Nisa: 15]: That is, fornication; and "harm them both" means by reviling them. Then they were abrogated by "The fornicatress and the fornicator, flog each one of them with a hundred lashes" [Surah al-Nur: 2]. And in the words of Allah, "or Allah makes for them a way" [Surah al-Nisa: 15], "a way" means the prescribed punishment (hadd).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 16905