Lie on you side close to the edge of the bed.
Your back should be near the edge of the bed.
Bend the bottom knee.
Keeping your top leg straight and move it backwards so that it hangs down over the edge of the bed.
Gradually try and let the top leg drop down further to increase the stretch.