Pain when sneezing ?

So I was laying on my side to go to sleep and I had to sneeze so I bent my knees a little bit. When I sneezed, I felt a VERY sharp pain in my lower right abdomen that caused me to yell out.

I’m worried that I might have hurt my baby or injured my uterus in some way. It may seem silly but it was really painful.

Has this ever happened to anyone?