Miqsam narrates from Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) had cupping done between Makkah and Madinah while he (peace and blessings be upon him) was fasting and in the state of ihram.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / 8264