It is narrated from Sayyiduna Adi bin Hatim (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "No woman should travel a distance of more than three nights except with her husband or a mahram."
Imam Abu Ya'la recorded it, and this report has a supporting narration (shahid) from the hadith of Sayyiduna Abu Sa'id (may Allah be pleased with him), which has already come in the section on the prohibition of fasting on Eid al-Fitr and Eid al-Adha. This hadith is also narrated in the two Sahihs and other books from the hadiths of Sayyiduna Ibn Umar, Sayyiduna Abu Sa'id and Sayyiduna Abu Hurayrah (may Allah be pleased with them).