You can try the following exercises for knee pain:
Hamstring Stretch
(back thigh)
• Sit with one leg straight and the other bent to the side.
• Slowly lean forward with your chest until you feel a stretch along the back of your thigh. Keep your back straight while leaning forward.

• Do not reach forward with your hands.
Calf Stretch
• Place one foot with toes pointing forward behind the other foot.
• Keep the back heel down and back leg straight.
• Slowly bend your front knee until you feel the calf stretch in the back leg.
Sanding Quad (front thigh)
• While standing on 1 leg, bend your opposite knee and hold the ankle.
• Slowly pull on the ankle until a stretch is felt in front of thigh/hip.
Cross Over (outer hip)
• Lie on your back and cross the injured knee over your other leg.
• With the opposite hand, pull your knee up and over toward the opposite shoulder.
• Keep your foot flat on the ground.
• Hold when you feel an outer hip stretch.