Sayyiduna Jabir bin Abdullah (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him), while in the state of ihram, got cupped on his hip because of a sprain; it is as if the Messenger of Allah (peace and blessings be upon him) got cupped because of a sprain or a headache.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19532