كتاب إقامة الصلاة والسنة فيها
5  
Establishing the Prayer and the Sunnah Regarding Them
(196)
Chapter: What was narrated concerning praying in the Mosque of Baitil-Maqdis (Jerusalem)
(196)
باب مَا جَاءَ فِي الصَّلاَةِ فِي مَسْجِدِ بَيْتِ الْمَقْدِسِ
Sunan Ibn Majah 1408
It was narrated from ‘Abdullah bin ‘Amr that the Prophet (ﷺ) said:
“When Sulaiman bin Dawud finished building Baitil-Maqdis, he asked Allah for three things: judgment that was in harmony with His judgment, a dominion that no one after him would have, and that no one should come to this mosque, intending only to pray there, but he would emerge free of sin as the day his mother bore him.” The Prophet (ﷺ) said: “Two prayers were granted, and I hope that the third was also granted.”
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ الْجَهْمِ الأَنْمَاطِيُّ، حَدَّثَنَا أَيُّوبُ بْنُ سُوَيْدٍ، عَنْ أَبِي زُرْعَةَ السَّيْبَانِيِّ، يَحْيَى بْنِ أَبِي عَمْرٍو حَدَّثَنَا عَبْدُ اللَّهِ بْنُ الدَّيْلَمِيِّ، عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ ‏"‏ لَمَّا فَرَغَ سُلَيْمَانُ بْنُ دَاوُدَ مِنْ بِنَاءِ بَيْتِ الْمَقْدِسِ سَأَلَ اللَّهَ ثَلاَثًا حُكْمًا يُصَادِفُ حُكْمَهُ وَمُلْكًا لاَ يَنْبَغِي لأَحَدٍ مِنْ بَعْدِهِ وَأَلاَّ يَأْتِيَ هَذَا الْمَسْجِدَ أَحَدٌ لاَ يُرِيدُ إِلاَّ الصَّلاَةَ فِيهِ إِلاَّ خَرَجَ مِنْ ذُنُوبِهِ كَيَوْمَ وَلَدَتْهُ أُمُّهُ ‏"‏ ‏.‏ فَقَالَ النَّبِيُّ ـ صلى الله عليه وسلم ـ ‏"‏ أَمَّا اثْنَتَانِ فَقَدْ أُعْطِيَهُمَا وَأَرْجُو أَنْ يَكُونَ قَدْ أُعْطِيَ الثَّالِثَةَ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 1408
In-book reference : Book 5, Hadith 606
English translation : Vol. 1, Book 5, Hadith 1408