Severe muscle pain on thighs

I have severe pain thighs since I sleep one sided. What is the remedy. Thanks in advance