Pain can be due to iliotibial band tightness, which is like a band of tissue along the outer aspect of thigh- needs confirmation through detailed history and physical examination.
Next Steps
Better to get a consultation for greater clarity.
Till then, try to do some stretching before getting down from the bed.