How to deal with abnormal thigh pain a few days after fitness leg training?

I haven't exercised for a long time, and then suddenly my thigh hurts especially after high-intensity training. Then I chose to rest and not be too tired, because the more you use your muscles, the more painful they will feel. So rest is actually the best solution. Don't be too tired. Don't stand if you can sit, and don't sit if you can lie down.