Maqsam (may Allah have mercy on him), the freed slave of Ibn Abbas (may Allah be pleased with them both), narrates that indeed the Messenger of Allah (peace and blessings be upon him) had cupping done while fasting and in the state of ihram.
Hadith Referenceالسنن المأثورة / باب ما جاء في حجامة الصائم / 344
Hadith Takhrijسنن ابن ماجہ، المناسک، باب الحجامۃ للمحرم، رقم : 3081 وقال الالبانی: صحیح، مسند الحمیدی : 233/1، رقم : 501 ، سنن ترمذی، الصوم، باب ماجاء فی الرخصۃ فی ذلک، رقم : 777 وقال حسن صحیح۔