The Messenger of Allah ﷺ said, "Do not undertake a journey to visit any mosque except three, the Sacred Mosque, the Aqsa Mosque, and this mosque of mine."
أن رسول الله ﷺ قال: لا تشد الرحال إلا إلى ثلاثة مساجد: إلى المسجد الحرام، وإلى المسجد الأقصى، وإلى مسجدي هذا.
Ibn Majah (1410) narrated it from Hisham bin Ammar, who said, "Muhammad bin Shuayb narrated to us, who said, Yazid bin Abu Maryam narrated to us, from Qazaa, from Abu Saeed and Abdullah bin Amr," and they both related the hadith.Its chain is hasan because of Yazid bin Abu Maryam, since there is disagreement about him. A group of scholars deemed him reliable, while Daraqutni criticized him, though his hadith is hasan. He is among the narrators found in the Sahih. Daraqutni said in his Ilal, "The correct view is the view of those who said, from Qazaa, from Abu Saeed."