عَنِ ابْنِ عَبَّاسٍ قَالَ: لَمَّا دَخَلَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الْبَيْتَ دَعَا فِي نَوَاحِيهِ كُلِّهَا وَلَمْ يُصَلِّ حَتَّى خَرَجَ مِنْهُ فَلَمَّا خَرَجَ رَكَعَ رَكْعَتَيْنِ فِي قُبُلِ الْكَعْبَةِ وَقَالَ: «هَذِه الْقبْلَة» . رَوَاهُ البُخَارِيّ
وَرَوَاهُ مُسْلِمٌ عَنْهُ عَنْ أُسَامَةَ بْنِ زَيْدٍ
Translation
Abu Sa'id al-Khudri reported God’s Messenger as saying, “Animals are saddled only for prayer in the three mosques
the sacred mosque, the Aqsa mosque, and this mosque of mine.”* * These are the only mosques to which long journeys may be made purely for the purpose of praying in them. The sacred mosque means the Ka'ba.(Bukhari and Muslim.)