The recovery time for a hip flexor strain will depend on the severity of the injury. It typically requires one to three weeks of rest and treatment to recover from mild conditions fully. On the other hand, more severe cases can take around four to six weeks or longer.