'Amr ibn Dīnār, from 'Atā' and Tāwūs, from Ibn 'Abbās: “The Prophet ﷺ underwent cupping while in a state of ritual consecration” (1). These students of Ibn 'Abbās do not mention that he was fasting.’”
Hanbal said (2): “Abū 'Abd Allāh narrated to us: Wakī' narrated to us, from Yāsīn al-Zayyāt, from a man, from Anas ibn Mālik, that the Messenger of Allah ﷺ underwent cupping in Ramadan after saying: ‘Both the person performing cupping and the one undergoing it have broken their fast.’” Abū 'Abd Allāh said: “I believe the man was Abān ibn Abī 'Ayyāsh (3),” meaning that his reports cannot be used as evidence (4).
Al-Athram said (5): “I said to Abū 'Abd Allāh: ‘Muhammad ibn Mu'āwiyah al-Naysābūrī narrated, from Abū 'Awānah, from al-Suddī, from Anas, that the Prophet ﷺ underwent cupping while fasting.’ He rejected this, then said: ‘Al-Suddī, from Anas?’ I replied: ‘Yes.’ He was astonished at this.”
Ahmad said: “There is more than one authentic hadith reporting his statement: ‘Both the person performing cupping and the one undergoing it have broken their fast.’”