Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:5408Aḥmad b. ʿUbayd > Tamtām > ʿAffān And ʾAbū al-Walīd Waḥafṣ b. ʿUmar And Muḥammad b. Kathīr Wamuslim b. Ibrāhīm Waʿamrū b. Ḥakkām > Shuʿbah > ʿAbd al-Malik > Qazaʿah a freed slave of Ziyād > Abū Saʿīd al-Khudrī

[Machine] I heard the Messenger of Allah ﷺ saying, "A woman should not travel for a journey of more than two days and two nights except with her husband or a mahram (unmarriageable kin) from her."  

البيهقي:٥٤٠٨فَأَخْبَرَنَا أَبُو الْحَسَنِ بْنُ عَبْدَانَ أنبأ أَحْمَدُ بْنُ عُبَيْدٍ ثنا تَمْتَامٌ ثنا عَفَّانُ وَأَبُو الْوَلِيدِ وَحَفْصُ بْنُ عُمَرَ وَمُحَمَّدُ بْنُ كَثِيرٍ وَمُسْلِمُ بْنُ إِبْرَاهِيمَ وَعَمْرُو بْنُ حَكَّامٍ قَالُوا ثنا شُعْبَةُ قَالَ عَبْدُ الْمَلِكِ أَنْبَأَنِي قَالَ سَمِعْتُ قَزَعَةَ مَوْلَى زِيَادٍ قَالَ سَمِعْتُ أَبَا سَعِيدٍ الْخُدْرِيَّ قَالَ

سَمِعْتُ رَسُولَ اللهِ ﷺ يَقُولُ لَا تُسَافِرِ الْمَرْأَةُ مَسِيرَةَ يَوْمَيْنِ وَلَيْلَتَيْنِ إِلَّا وَمَعَهَا زَوْجُهَا أَوْ ذُو مَحْرَمٍ مِنْهَا  

رَوَاهُ الْبُخَارِيُّ فِي الصَّحِيحِ عَنْ حَفْصِ بْنِ عُمَرَ وَأَبِي الْوَلِيدِ وَغَيْرِهِمَا وَأَخْرَجَهُ مُسْلِمٌ مِنْ وَجْهٍ آخَرَ عَنْ شُعْبَةَ وَأَمَّا الرِّوَايَاتُ فِي ذَلِكَ عَنْ أَبِي هُرَيْرَةَ

See similar narrations below:

Collected by Mālik
malik:54-38Mālik > Saʿīd b. Abū Saʿīd al-Maqburī > Abū Hurayrah

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."  

مالك:٥٤-٣٨وَحَدَّثَنِي مَالِكٌ عَنْ سَعِيدِ بْنِ أَبِي سَعِيدٍ الْمَقْبُرِيِّ عَنْ أَبِي هُرَيْرَةَ

أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ لاَ يَحِلُّ لاِمْرَأَةٍ تُؤْمِنُ بِاللَّهِ وَالْيَوْمِ الآخَرِ تُسَافِرُ مَسِيرَةَ يَوْمٍ وَلَيْلَةٍ إِلاَّ مَعَ ذِي مَحْرَمٍ مِنْهَا