There is a bump that's hard and hurts in my thigh, what could it be?

Many causes. This needs to be evaluated by a physician as soon as possible; do not ignore a new painful lump as it could be a cancer. Benign causes are more likely, but only a doctor can sort things out for you. You may require an ultrasound or a needle biopsy to sort things out. Good luck!