Rest, gradual return
A torn muscle needs time to heal, and should be rested for at least 2 weeks.
After that, be gentle - very slowly begin gentle stretches and low impact exercises. It is very easy to re-injure the muscle if you overdo it! a significant tear in the muscle will take 6-8 weeks before you can get back to a strenuous level of activity.