Bulugh al-Maram 779
وَعَنِ ابْنِ الزُّبَيْرِ رَضِيَ اللَّهُ عَنْهُمَا قَالَ: قَالَ رَسُولُ اللَّهِ - صلى الله عليه وسلم: «صَلَاةٌ فِي مَسْجِدِي هَذَا أَفْضَلُ مِنْ أَلْفِ صَلَاةٍ فِيمَا سِوَاهُ إِلَّا الْمَسْجِدَ الْحَرَامَ, وَصَلَاةٌ فِي الْمَسْجِدِ الْحَرَامِ أَفْضَلُ مِنْ صَلَاةٍ فِي مَسْجِدِي بِمِائَةِ صَلَاةٍ». رَوَاهُ أَحْمَدُ, وَصَحَّحَهُ ابْنُ حِبَّانَ.
From Ibn az-Zubayr, may Allah be pleased with them both, who said: The Messenger of Allah ﷺ said: "A prayer in this mosque of mine is better than a thousand prayers in any other, except al-Masjid al-Haram, and a prayer in al-Masjid al-Haram is better than a prayer in my mosque by a hundred prayers." Reported by Ahmad; Ibn Hibban graded it sahih.