Overdoing thigh exercises can lead to a muscle pull in the hamstring. Generally, when one has a pulled hamstring, rest is advised. Additionally, the following treatment options can ease the pain.
Stretch : Keep the injured leg stretched out. Do not engage in any activity that requires you to bend your injured leg. This can help reduce the muscle pain.