Hanash bin al-Mu'tamir said: A man from among us married a woman, then committed adultery before consummating the marriage. Sayyiduna Ali (may Allah be pleased with him) imposed the prescribed punishment on him, and the woman did not wish to remain with him, so he separated them as well.
The Shaykh said: (As for holding that) the separation between them was a legal ruling, we do not say this; and it is also possible that the separation was made with their consent.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحدود / 16947