Lying with knees bent up and feet flat on floor/bed about 12 inches (30cms) apart.
Pull one knee up to chest with both hands, keeping the other leg stretched out.
Release, then repeat with the other leg.
Repeat 3-5 times each leg.
If you have problems/concerns, talk to a physiotherapist