Sahih Muslim, Book 15, Hadith 471 (Muslim 3236)

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

It is not lawful for a woman who believes in Allah and the Hereafter to undertake a day's journey except in the company of a Mahram.