Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "A woman must not travel a journey of three days or more except in the company of her father, her brother, her son, her husband, or a close male relative she cannot marry."

Ibn Majah 2898

Sahih

حدثنا علي بن محمد حدثنا وكيع حدثنا الأعمش عن أبي صالح

عن أبي سعيد قال

قال رسول الله ﷺ لا تسافر المرأة سفرا ثلاثة أيام فصاعدا إلا مع أبيها أو أخيها أو ابنها أو زوجها أو ذي محرم

ابن ماجه 2898صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Rites of pilgrimage
Chapter
A woman performing Hajj without a guardian
Numbering
Darussalam 2898
Ibn Majah 2898