Question:
What ruling does Islam give regarding a practising Muslim woman going to a male doctor, where the doctor, for the purpose of examination, looks only at the part of her body where the illness is, and where she also has a mahram who does not want to go with her?
Answer:
If going to the male doctor requires travelling, then it is not permissible for the woman to go alone without a mahram, without need. And if going to the doctor does not require travelling, then, in sha Allah, there is no harm in it, provided that a female doctor is not available to treat the woman, because women used to go out with the Messenger of Allah ﷺ on military campaigns and there they would dress the wounds of the injured and give medicine and the like to the sick. So even now, if there is such a need (for a man to be treated by a woman, or a woman by a man), then, in sha Allah, there is no harm in it.
And if the woman has to be in seclusion and alone with a male doctor for the purpose of treatment and examination, then she should take guidance from this hadith of the Messenger of Allah ﷺ:
لا يخلون رجل بامرأة إلا مع ذي محرم
“No man should be in seclusion with a woman except in the presence of her mahram.” والله المستعان