It is not lawful for a woman believing in Allah and the Hereafter to undertake journey…

Sahih Muslim Book 15 Hadith 472

Sahih Muslim #1339 c

The Book of Pilgrimage 15:472

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

It is not lawful for a woman believing in Allah and the Hereafter to undertake journey extending over a day and a night except when there is a Mahram with her.

Chapter: A woman travelling with a Mahram for Hajj and other purposes

Grade: Sahih