Fasting is not broken by cupping (sangi or pachhne)
It is narrated from Ibn Abbas (may Allah be pleased with them both) that:
ان النبى صلى الله عليه وسلم احتجم وهو صالم
“The Prophet ﷺ had himself cupped while fasting.”
[Bukhari: 1938, Kitab al-Sawm: Bab al-Hijama wa al-Qay’ lil-Sa’im, Abu Dawud: 2372, Tirmidhi: 772, Bayhaqi: 268/4, Ibn Abi Shaybah: 163/2]
In the narration from Rafi’ ibn Khadij (may Allah be pleased with him), the Prophet ﷺ said:
أفطر الحاجم والمحجوم
“Both the one who performs the cupping and the one who has it done have broken their fast.”
[Tirmidhi: 773, Kitab al-Sawm: Bab Ma Ja’a fi Karahiyat al-Hijama lil-Sa’im, Abd al-Razzaq: 7523, Ibn Khuzaymah: 1964, Hakim: 428/1, Bayhaqi: 265/4]
The strongest likelihood regarding this is that this narration and all similar narrations have been abrogated.
(The majority of scholars, Malik (may Allah have mercy on him), Shafi’i (may Allah have mercy on him) and Abu Hanifah (may Allah have mercy on him)) hold this view.
(Ibn Hazm (may Allah have mercy on him)) holds this same position.
[Nayl al-Awtar: 171/3, Tuhfat al-Ahwadhi: 563/3, al-Muhalla bi al-Athar: 335/4]
This is further supported by the narration from Abu Sa’id (may Allah be pleased with him):
انه صلى الله عليه وسلم رخـص فــي الـحجـامة للصائم “He ﷺ permitted cupping for the one who is fasting.”
[Ibn Abi Shaybah: 51/3 – 53]
(Ahmad (may Allah have mercy on him)) held that fasting becomes invalid through cupping.
[Tuhfat al-Ahwadhi: 563/3]