Sahih Muslim, Book 15, Hadith 468 (Muslim 3233)

Abu Sa'id Khudri (Allah be pleased with him) reported Allah's Apostle (ﷺ) as saying:

A woman should not set out on a journey extending beyond three nights but with a Mahram.