Sunan Ibn Majah, Book 5, Hadith 604 (Ibn Majah 1406)

It was narrated from Jabir that the Messenger of Allah (ﷺ) said:

“One prayer in my mosque is better than one thousand prayers elsewhere, except the Sacred Mosque, and one prayer in the Sacred Mosque is better than one hundred thousand prayers elsewhere.”