I can't really say for sure but you may have strained your adductors. Or you may have pinched your hip flexor tendon. Or you may have strained the hip joint itself or injured the labrum of the hip joint. Hard to say. But if it's taking a long time to heal I would go see a PT (ie it's been more than 4 weeks and is still very sore).
Living life like there's no tomorrow.
http://gorgebikefitter.com/
2007 Look Dura Ace
2010 Custom Tonic cross with discs, SRAM
2012 Moots YBB 2 x 10 Shimano XTR
2014 Soma B-Side SS