Suicidal thoughts and depression

I just had my 3rd miscarriage and it’s getting really hard to deal with it. My husband left me and I’m alone with no baby and no husband. I really feel like depressed and feel like ending it all. It’s hard seeing other couples and pregnant woman. What helped y’all with y’all miscarriages?