Nafi' narrates from Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "A woman should not travel three (days) unless a mahram is with her."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 10136