Hi,
For pain relief use ice pack. After pain relief do hamstring stretches for both legs increase with rep every time.also doback strengthening exercises and knee strengthening. With some stretches calf, hamstring, quadriceps and back.
Next Steps
but for a good result you should visit nearest physiotherapy center and take proper treatment
Health Tips
consultation with proper doctor and following advice is must before starting any treatment.