Threatened miscarriage

I went to the ER today. After 2 days spotting brown and 1 day of pink. And it was not alot of bleeding. Doctor said I'm having a miscarriage threat I'm so scared and worried they took blood which marks I should be 5 to 6 weeks but to a doctor I'm 2 months and a half I just pray to God that the baby stays. Please pray for the baby and me