Praise be to Allaah.
It is haraam for the wife to ask for a divorce for no reason, and it is haraam for her to go out of the house for no reason without her husband’s permission. But if she is being harmed as a result of staying in her husband’s house or staying married to him, then she has the right to ask him for a divorce. She has the right to leave the house and go to her family so that she can escape from her husband’s abuse and beatings. The husband has to fear Allaah with regard to what Allaah has put him in charge of. The Prophet urged good treatment of women, and Allaah commanded His Messenger SAWS (peace and blessings of Allaah be upon him) to treat people on a reasonable basis. Whatever the case, if the husband’s abuse is ongoing then she has the right to ask for the marriage to be annulled, and he has to respond to that request, or he has to repent to Allaah, and stop harming her.