Im 18 weeks and i slept on my stomache

I was sleeping and i woke up and noticed that i was on my belly so i turned over and all my abdomen really hurt and im scared that my baby is not ok what can or should i do