I’m really sorry to hear what has happened – and I know you want your family back together – but the way to do this is to focus on yourself.
You need to stop gambling – read the stories here and look at the “recovery tools” part of the website to see how to do this. But in a nutshell you need to lose access to places where you gamble, access to the money to gamble with and fill the time with non gambling things. You also need very good support for yourself. If you are feeling suicidal, please contact a helpline in the country you are in, Samaritans in the UK for instance.
If you focus on your own recovery and show your husband that you are working on this and can be trusted again (and that may take a long time) then your relationship may heal.
If you can get to one of the support group meetings – especially those for new members – you will be able to get more specific advice. Or tell us more about yourself here to get more responses. I wish you well.