Here's an exercise that strengthens the hamstrings for people recovering from hamstring tears. It can also help prevent future injuries.
Start with a comfortable number of repetitions and build up gradually. If you're early in your recovery or unsure how much to do, ask your physiotherapist to tailor the exercise to your stage of healing.

