كتاب الحج
15  
The Book of Pilgrimage
(74)
Chapter: A woman travelling with a Mahram for Hajj and other purposes
(74)
باب سَفَرِ الْمَرْأَةِ مَعَ مَحْرَمٍ إِلَى حَجٍّ وَغَيْرِهِ ‏‏
Sahih Muslim 827 h

This hadith has been narrated on the authority of Qatada with the same chain of transmitters and he said:

" More than three (days) except in the company of a Mahram."
وَحَدَّثَنَاهُ ابْنُ الْمُثَنَّى، حَدَّثَنَا ابْنُ أَبِي عَدِيٍّ، عَنْ سَعِيدٍ، عَنْ قَتَادَةَ، بِهَذَا الإِسْنَادِ وَقَالَ ‏ "‏ أَكْثَرَ مِنْ ثَلاَثٍ إِلاَّ مَعَ ذِي مَحْرَمٍ ‏"‏ ‏.‏
Reference : Sahih Muslim 827h
In-book reference : Book 15, Hadith 469
USC-MSA web (English) reference : Book 7, Hadith 3103
  (deprecated numbering scheme)