Sunan Ibn Majah · Hadith 739
The Book On The Mosques And The Congregations - كتاب المساجد والجماعات
حدثنا عبد الله بن معاوية الجمحي، حدثنا حماد بن سلمة، عن أيوب، عن أبي قلابة، عن أنس بن مالك، قال قال رسول الله صلى الله عليه وسلم " لا تقوم الساعة حتى يتباهى الناس في المساجد " .
It was narrated that Anas bin Malik said: "The Messenger of Allah said: 'The Hour will not begin until the people compete in (building) mosques.'"
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).