Rafi bin Khadi narrated that: The Prophet said: "The Cupper and the one cupped have broke the fast".
The Prophet ﷺ also taught us about taking care of our health even during Ramadan when we are fasting. He showed us that if there is a need for medical treatment such as cupping then it should be done so long as it does not break the rules of fasting. We should always prioritize our health over anything else and seek medical help when needed even while observing religious obligations like fasting in Ramadan.