Sunan Abi Dawud, Book 2, Hadith 59 (Abu Dawud 449)

Narrated Anas ibn Malik:

The Prophet (ﷺ) said: The Last Hour will not come until people vie with one another about mosques.