Did I have a contraction?

I am 33 weeks and the other night I woke up on my back and when I moved I got this wicked tight, painful sensation right across the middle of my stomach, felt like my muscles were all squeezing really hard. I got up to pee and when I came back to bed I had to do some cat-cow yoga stretches. It went away about 3 mins later (maybe 5 mins total of the pain) and I haven’t had it since then.

I’m just not sure of what to expect for contractions and I’m so freaked out about going into preterm labor.