It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) had cupping done while in the state of Ihram.
Hadith Referenceالسنن المأثورة / باب ما جاء في فدية الأذى / 464
Hadith Takhrijصحیح بخاری، جزاء الصید باب الحجامۃ للمحرم، رقم: 1835، صحیح مسلم، الحج، باب جواز الحجامۃ للمحرم، رقم: 1202۔