Hasan al-Basri (may Allah have mercy on him) said: "If a woman does such a thing while living with her husband, then he should leave her, and not keep her with him."