You do this stretch before exercise without pushing it too hard. You don’t want to tear your hamstrings, please. After your workout do a static stretch and I hope this has been useful.