Sahih Muslim, Book 15, Hadith 467 (Muslim 3232)

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

A woman should not set out on three (days') journey, but in the company of a Mahram.