It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) had himself cupped while he was fasting and in the state of ihram.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12513