Legs hurting at night

I’m 25 weeks and just in the past week my legs have been hurting in the middle of the night. Doesn’t matter if I’m sleeping with legs bent, legs straight, on one side or another. When I wake up my hips and legs are noticeably sore. Has this been happening to anyone else? I was thinking about trying some prenatal yoga before bed.