There can be various causes for your pain in thighs.
1... It could be a proximal neuropathy caused by uncontrolled diabetes
2... It could be due to myosotis caused by taking statins ,which are generally prescribed in diabetics because of associated dyslipidemia
3.., it could be due to meralgia paresthetica
Discuss with your doctor regarding these possibilities and their treatment.