It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he was returning from al-Tur, and he met Sayyiduna Jamil bin Basrah al-Ghifari (may Allah be pleased with him). Jamil (may Allah be pleased with him) said to him: "Had I met you before you went to al-Tur, you would not have gone there," and then he narrated the full hadith (the hadith about not travelling except to three mosques, as mentioned ahead).
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 2144