All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messengear.
Both spouses should have good marital relationship with each other as Allaah ordered in His Book saying (what means): {And due to them [i.e. the wives] is similar to what is expected to them, according to what is reasonable.} [Quran 2:228]
If problems happen, then they should be wise in solving them. Besides, the parents of the wife should endeavour to reconcile between their daughter and her husband and not be part of the problem.
In any case, if what you mentioned is true that your husband beat you, and he has no sound reason for doing so, or that this beating was through aggression only to harm you, then he is wrong. However, you also was wrong by going out of the marital home without the consent of your husband if this going out was without a sound reason, like fearing to be harmed by him and the like. Moreover, it is not permissible for you to ask for divorce without a sound reason as this is prohibited in the Sharee’ah.
On the other hand, if the wife is harmed by her husband by him beating her, for example, then this is a sound reason for her to ask for divorce.
However, we advise you to be patient with your husband especially that he wishes to reconcile with you, and reconciliation is good especially if you have children from him because in general the children are harmed when divorce takes place. Also, it could be that the wife asks her husband to divorce her and once she is divorced, she regrets. Therefore, you should take your time and ask the advice of rational people in your family.
Nonetheless, if you are determined to separate from him, then you may ask him to divorce you. If he accepts and divorces you, then this is what is required, but if he refuses, then you may ask for Khul’. For more benefit, please refer to Fataawa 89039 and 84309.
Finally, it should be noted that we are unable to determine how you could convince him, and if you do not want to mention to him the fact of him beating you, then you may say to him that you are unable to live with him anymore.
Allaah Knows best.