Ruling on a woman deeming herself unlawful for her husband

Divorcing one’s wife thrice and taking her back after the first two