Whats done cannot be undone. The important thing right now is get the custody of your child and for that you have to prove that you can raise your child on your own as you have the financial means and you are a responsible parent.

Dont Count on Shariah Laws for the custody of your child.
There are lot of things that you need to do as from now you will be on your own. You might be able to get some help from the female members of QL regarding the laws on divorce and custody matters.