Sorry for your loss, same thing happened to me.
My doc said it was because of my age (I'm 45), didn't help the sorrow of the loss of much wanted 2nd baby..we went into hospital the next day to remove what little there was inside me, the theatre staff were so kind to me but didn't help the broken heart.
Stay strong and remember you are not alone-miscarriage is surprisingly (to me) common-up to 20 percent of pregnancies end this way. There is nothing to say that next time a pregnancy won't be absolutely fine.
Be kind to yourself-you did nothing wrong sweetie, it is not your fault this happened.
Good luck and lots of love and it will get better-take one day at a time xxx