Where was the pain? Could it be due to way you’ve slept?
Could it be a ligament paint perhaps? Where was it located exactly? If the pain is gone, it's a good sign. But any worry, you should call your maternity.
I was thinking it looks like round ligament pain. If you use your NHS healthier together app it will signpost you and give more information
Yes call the unit