Lie down with your legs reaching up the wall. your bum should be slightly off the floor.
Bend one leg and leave the other outstretched.
Push your thigh towards the wall.
Hold the stretch for a few seconds then return to starting position.
Hamstrings Stretch Variation One Exercise Guide - Hamstrings Workout | MuscleWiki