So scared

So I am a little over 9 weeks and I started spotting Monday afternoon. It was very light and only brown. It stopped the next day. I had my ob apt today and she did a pelvic exam and after she took the cotton swab out ( I know that not what they used but it's looks like one) it had bright, red blood on it. She did an ultrasound and said everything looks good with the baby and my cervix is closed. She said the bleeding is coming from my cervix and put me on bed rest. Just wondering if anyone else had this happen to them and everything turned out ok. I'm so scared still.