It is narrated from Sayyidah Aishah (may Allah be pleased with her): "The Messenger of Allah (peace and blessings be upon him) had cupping (hijamah) done while he was fasting."
Al-Harith recorded it from Muhammad bin Umar al-Waqidi, who is weak. However, it has a supporting narration (shahid) from the hadith of Sayyiduna Ibn Abbas (may Allah be pleased with them both), which al-Tirmidhi recorded and graded sahih. Al-Tirmidhi said: "Some of the Companions of the Prophet (peace and blessings be upon him) (may Allah be pleased with them) and other scholars have adopted this hadith, and they saw no harm in a fasting person having cupping done; and this is the view of Sufyan al-Thawri, Malik and al-Shafi'i."