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

Sahih Muslim Book 15 Hadith 474

Sahih Muslim #1340 a

The Book of Pilgrimage 15:474

Abu Sa'id al-Khudri (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 three days or more, except when she is in the company of her father, or her son, or her husband, or her brother, or any other Mahram.

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

Grade: Sahih