Sayyiduna Anas (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) had cupping done on the top of his foot due to pain in his foot, and at that time he was in the state of Ihram.
Hadith Referenceصحیح ابن حبان / كتاب الحج / 3952
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - المصدر نفسه (1611/ 2).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرط الشيخين