Get up, stand up
While in bed, the ligaments that connect my thigh muscles by the hip points were getting tight and hurting. It was like an electromagnetic wire going taut.
After a few days of this, I intuited that the problem came from sitting in the wheelchair all day without standing up. Now I make a point of standing up for several minutes each day. The problem is not gone, but it happens a lot less often.