وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا تُسَافِرُ امْرَأَةٌ مَسِيرَةَ يَوْمٍ وَلَيْلَةٍ إِلَّا وَمَعَهَا ذُو محرم»

Abu Huraira reported God’s messenger as saying, “A woman must not make a journey of a day and a night unless she is accompanied by a man who is within the prohibited degrees.”

Bukhari and Muslim.