It was narrated from Jabir that Umm Salamah, the wife of the Prophet (ﷺ), asked the Messenger of Allah (ﷺ) for permission to be cupped, and the Prophet (ﷺ) told Abu Taibah to cup her.
Hadith Referenceسنن ابن ماجه / كتاب الطب / 3480
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح مسلم
1؎: Otherwise, how could you have ordered a non-mahram man to perform cupping (hijamah) on you? Although, in times of necessity, it is permissible for a physician to look at the place of illness, but only to the extent of the area of illness.
Narrated Jabir: Umm Salamah asked the Messenger of Allah ﷺ permission for getting herself cupped. He commanded Abu Tibah to cup her. The transmitter said: I think he was her foster-brother or a boy not yet of age.
Shaykh Umar Farooq Saeedi
Benefits and Issues: ➊ The same ruling applies to minor children who are not yet aware of women's private matters and to purchased slaves; therefore, when necessary, it is permissible for a woman to reveal her adornment in their presence.
➋ In an Islamic society, it is necessary to arrange for female physicians (lady doctors) for the medical treatment of women, so that they do not have to appear before non-mahram male doctors.
➌ A woman's hair is part of her inner adornment, which she cannot reveal before a non-mahram.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 4105