Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates that the Prophet (peace and blessings be upon him) had cupping done while he (peace and blessings be upon him) was fasting.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / 8263