It is narrated from Abu Huraira (may Allah be pleased with him) that he reported from the Messenger of Allah (peace and blessings be upon him), he said: "It is not permissible for a woman who believes in Allah and the Last Day to travel for a day and night without a mahram."
Hadith Referenceمسند الإمام الشافعي / كتاب الحج / 851
Hadith Takhrijاخرجه البخاري، التقصير ، باب في كم يقصر الصلاة (1088) ومسلم ، الحج، باب سفر المرأة مع محرم الى حج وغيره (1399)۔