Resting the muscle is crucial for a speedy recovery of your hamstring. During the healing period, it is important that you gradually increase the amount of time you spend exercising by activating your hamstring muscles. You may also ice your leg to lessen discomfort and swelling in order to heal more quickly.