It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that once the Prophet (peace and blessings be upon him) had cupping done while he was in the state of ihram and fasting. Because of this, the Prophet (peace and blessings be upon him) fainted, and for this reason, the Prophet (peace and blessings be upon him) considered it disliked for a fasting person to have cupping done.