Sitting or standing with one leg extended and toes pulled back, you hinge forward at the hips until you feel a pull along the back of the thigh. Keeping the knee straight throughout is what isolates the hamstring instead of letting the lower back take over.
Log your hamstring stretch sets in 1RM.fit and watch your estimated 1RM update automatically as you get stronger.