one leg or two?
more than likely you pulled something...you may need to see if you can stretch that area at night, if it really hurts when you do that, i would rest it for a week or two.....next time make sure you are properly warmed up and stretched b4 working out.
again, if u can stretch...