Sore tummy

Why is my stomach soooo sore in the middle of the night and when i wake up, and goes away once i get up and move around? Im almost 26 weeks