Lie on one side. Grasp top ankle or forefoot behind. Pull ankle or forefoot to rear end.
Straighten hip by moving knee backward. Hold stretch. Repeat with opposite side.
See Lying Tibialis Anterior Stretch for similar exercise which can be combined with this stretch and performed simultaneously.