Thanks for posting your query
It might be soft tissue injury
at the time of injury and it take 10-15 days to heal.
But if the pain and swelling persists , You should vist an orthopaedic surgeon
for local examination of thigh & leg & X-ray of the part if needed.
I hope this answers your query effectively.