Stand straight and bend your upper body down to fold body in half to stretch hamstrings. Or try triangle pose in yoga. Or lie down and lift leg up to stretch.
Usually touching your toes stretches the muscles in ur thigh. U can do this standing or sitting. Just reach as far down as u can and the muscles in ur thighs will stretch.
What you can do is if you’re in bed, have both legs straight and gently reach your arms towards your feet. Don’t stretch more than you can comfortably do