Malik related to me from Said ibn Abi Said al-Maqburi from Abu Hurayra that the Messenger of Allah ﷺ said, "It is not halal for a woman who believes in Allah and the Last Day to travel the distance of a day and night without a man who is her mahram."
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ يَحِلُّ لاِمْرَأَةٍ تُؤْمِنُ بِاللَّهِ وَالْيَوْمِ الآخَرِ تُسَافِرُ مَسِيرَةَ يَوْمٍ وَلَيْلَةٍ إِلاَّ مَعَ ذِي مَحْرَمٍ مِنْهَا