Hi, I had gone through your question and understand your concerns.
Muscle tightness is because it's over-lengthened, stretching will not resolve the problem because it's already over-stretched, stretching will most likely irritate the muscle further. Problem lies in the opposing muscle group.
you can do this for prevention or treatment:
Stretch or roll your quadriceps (front thigh muscles)and
hip flexors with quad stretch.Stretch your hamstrings by lying on your back, NOT by standing up and trying to touch your toes.
Strengthening core especially abdominal muscles.Try incorporating planks into your routine.
Strengthen hamstring muscles with leg curls. Use no weight or a very light weight at first.
Ice the site immediately after any exercise for 15 to 20 minutes. Also try wearing compression shorts to help support the affected muscles.
Massage Therapy can help by relaxing tight muscles, improving flexibility, and restoring joint range of motion.
Visit your physician if the pain is persistent, if you are limping or altering your gait in any way, and especially if you notice any bruising.
Physical Therapy can help healing and work on correcting any muscle weaknesses or imbalances.
Hope this answers your question. If you have additional questions or follow up questions then please do not hesitate in writing to us and voting. I will be happy to answer your questions.