From Sahih Muslim (Hadith 3267):
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
Reference: Muslim 3267