Sahih Muslim, Book 15, Hadith 473 (Muslim 3238)

Abu Huraira (Allah be pleased with him) reported Allah's Messenger (ﷺ) as saying:

It is not lawful for a woman to undertake three (days, ) journey except when there is a Mahram with her.