Sayyiduna Ibn Abbas (may Allah be pleased with them both) narrated that the Prophet (peace and blessings be upon him) had cupping done while he was fasting.