All praise be to Allaah.
The saheeh evidence indicates that a woman is not allowed to travel except with a Mahram. This is the greatness of Islam and the perfection of it. It protects honour and dignity of women and strives to protect them and guard them against the causes of temptation and deviation.
The evidence includes the hadeeth narrated by al-Bukhaari (1729) and Muslim (2391) from Ibn ‘Abbaas (may Allaah be pleased with him) who said: The Prophet (peace and blessings of Allaah be upon him) said: “No woman should travel except with a mahram, and no man should enter upon her unless there is a mahram with her.” A man said: “O Messenger of Allaah, I want to go out with such and such an army and my wife wants to go for Hajj.” He said: “Go out with her.”
Based on the above evidence it is not permissible for a woman to travel alone without a mahram, to seek knowledge.
She should acquire knowledge that she needs in many ways like the internet, asking scholars and by means that are available to her.
The Standing Committee was asked: Can a woman go out to study medicine, if it is obligatory or permissible, if doing so will lead to the following things no matter how much she tries to avoid them:
a) Mixing with men, such as speaking to the patients, the tutor of medicine and on public transport.
b) Traveling from a country such as Sudan to Egypt, even if the journey will take only hours, and not three days.
c) Is it permissible for her to stay alone without a mahram in order to learn medicine, if she is going to stay with a group of women, along with the circumstances described above?
Firstly: if her going out to learn medicine will lead to her mixing with men during her study or when riding in mixed transportation that will lead to fitnah (temptation), then it is not permissible for her to do that, because guarding her honour is an individual obligation, but learning medicine is a communal obligation, and an individual obligation takes precedence over a communal obligation.
As for merely speaking to a patient or a teacher of medicine, that is not haraam, rather what is haraam is making the voice soft and appealing when speaking to him, which may tempt those in whose heart is the sickness of evil and hypocrisy. This does not apply only to learning medicine.
Secondly: If she has a mahram who can travel with her so that she can learn medicine, or teach it, or treat a patient, that is permissible. If she does not have a husband or mahram who can travel with her, then it is haraam, even if the journey is by plane, because the Prophet (peace and blessings of Allaah be upon him) said: “No woman should travel except with a mahram.” Saheeh – agreed upon. And because of what we have stated above about the interests of protecting honour taking precedence over the interests of learning medicine or teaching it, etc.
Thirdly: If her staying with a trustworthy group of women is so that she may learn medicine or teach it, or treat women, then it is permissible, but if there is the fear of fitnah (temptation) because of not having a husband or mahram with her, then it is not permissible. If she is going to treat men, that is not permissible unless it is a case of necessity and she is not alone with a man. End quote from Fataawa al-Lajnah al-Daa’imah (12/178).
And Allaah knows best.