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.