Sahih Muslim, Book 15, Hadith 462 (Muslim 3227)

Ibn Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying:

A woman should not set out on three (days' journey) except when she has a Mahram with her.