Sayyiduna Ibn Abbas (may Allah be pleased with them both) said that the Prophet (peace and blessings be upon him) got cupped while he was fasting.