What is cause?
Are you sure it is muscle pain
? Is the pain localized to one area or travelling? If you truly just "over did it" then it can be muscular. Prevention is best so do you best to be in some reasonable physical condition to do your intended activity.
Ice, stretch easy and get off your feet if it is your leg. Over the counter anti-inflammatory medication may help-check with your doctor.