(15) The Book of Pilgrimage
كتاب الحج
(95) Chapter: The virtue of the Three Masajid
(95) باب لاَ تُشَدُّ الرِّحَالُ إِلاَّ إِلَى ثَلاَثَةِ مَسَاجِدَ ‏‏
Sahih Muslim 1397 b 

This hadith has been narrated on the authority of Zuhri (but with this change of words) that he (Allah's Apostle) said:

" Undertake journey to three mosques."
وَحَدَّثَنَاهُ أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ الأَعْلَى، عَنْ مَعْمَرٍ، عَنِ الزُّهْرِيِّ، بِهَذَا الإِسْنَادِ غَيْرَ أَنَّهُ قَالَ ‏ "‏ تُشَدُّ الرِّحَالُ إِلَى ثَلاَثَةِ مَسَاجِدَ ‏"‏ ‏.‏
Reference : Sahih Muslim 1397b
In-book reference : Book 15, Hadith 589
USC-MSA web (English) reference : Book 7, Hadith 3219
  (deprecated numbering scheme)