The World Federation One Stop Fiqh

Ruling 2426

If a woman marries a man while she is in the state of iḥrām, the marriage contract is invalid even if the man is not in the state of iḥrām himself. In the event that the woman knew that getting married while in the state of iḥrām is unlawful, the obligatory precaution is that she must never marry that man.