Resentment

So April 1st we found out I was pregnant. We freaked out. Then within the next couple days we got excited. We were set on names. Sunday evening i decided to pray, something I don't do very often. I prayed to keep my baby safe and grow healthy. Monday morning I woke up to blood, everywhere. I was hurting and I was worried. I go to see the doctor have some blood tests to find out I miscarried and my HCG levels were already back down to 0. Now I was never really a religious person growing up but I started to believe a short time ago. After this I feel I was right not to believe. Prayers don't get answered. I also feel resentment towards myself, like I did something to cause this. I was only 5 weeks but I feel so upset by it, that was still my baby. It's hard to open up about my emotions so I stay quiet and don't voice how I actually feel, so I posted on here just to get it out.