The Messenger of Allah ﷺ said, "It is not lawful for a Muslim woman to travel for a night unless she is accompanied by a male relative who is unlawful for her to marry."
حدثنا يونس حدثنا ليث حدثني سعيد عن أبيه أن
إن رسول الله ﷺ قال لا يحل لامرأة مسلمة تسافر ليلة إلا ومعها رجل ذو حرمة منها