Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:2234[Chain 1] Abū Muḥammad ʿAbdullāh b. Yūsuf Imlāʾ > Abū Saʿīd b. al-Aʿrābī > Jaʿfar b. > Basah Abū Muḥammad [Chain 2] Abū Bakr b. al-Ḥasan al-Qāḍī And ʾAbū Naṣr Aḥmad b. ʿAlī > Abū al-ʿAbbās b. Yaʿqūb

[Machine] Indeed, the Messenger of Allah ﷺ said, "The house (Kaaba) is the prayer direction for the people of the mosque, and the mosque is the prayer direction for the people of the Sacred Mosque (in Makkah), and the Sacred Mosque is the prayer direction for the people of the Earth in its east and west. Omar ibn Hafs al-Makki, though weak, has reported this narration which cannot be relied upon, and it has also been narrated through another weak chain from Abdullah ibn Habashi. Similarly, it has been reported as a statement from the Prophet ﷺ . And Allah knows best."  

البيهقي:٢٢٣٤حَدَّثَنَا أَبُو مُحَمَّدٍ عَبْدُ اللهِ بْنُ يُوسُفَ إِمْلَاءً أَخْبَرَنِي أَبُو سَعِيدِ بْنُ الْأَعْرَابِيِّ ثنا جَعْفَرُ بْنُ عَنْبَسَةَ أَبُو مُحَمَّدٍ (ح) وَأَخْبَرَنَا أَبُو بَكْرِ بْنُ الْحَسَنِ الْقَاضِي وَأَبُو نَصْرٍ أَحْمَدُ بْنُ عَلِيٍّ قَالَا ثنا أَبُو الْعَبَّاسِ بْنُ يَعْقُوبَ ثنا أَبُو مُحَمَّدٍ جَعْفَرُ بْنُ عَنْبَسَةَ بْنِ عَمْرِو بْنِ يَعْقُوبَ الْيَشْكُرِيُّ فِي نُخَيْلَةَ ثنا عُمَرُ بْنُ حَفْصٍ الْمَكِّيُّ مِنْ وَلَدِ عَبْدِ الدَّارِ ثنا ابْنُ جُرَيْجٍ عَنْ عَطَاءٍ عَنِ ابْنِ عَبَّاسٍ

أَنَّ رَسُولَ اللهِ ﷺ قَالَ الْبَيْتُ قِبْلَةٌ لِأَهْلِ الْمَسْجِدِ وَالْمَسْجِدُ قِبْلَةٌ لِأَهْلِ الْحَرَمِ وَالْحَرَمُ قِبْلَةٌ لِأَهْلِ الْأَرْضِ فِي مَشَارِقِهَا وَمَغَارِبِهَا مِنْ أُمَّتِي تَفَرَّدَ بِهِ عُمَرُ بْنُ حَفْصٍ الْمَكِّيُّ وَهُوَ ضَعِيفٌ لَا يُحْتَجُّ بِهِ وَرُوِيَ بِإِسْنَادٍ آخَرَ ضَعِيفٍ عَنْ عَبْدِ اللهِ بْنِ حَبَشِيٍّ كَذَلِكَ مَرْفُوعًا وَلَا يُحْتَجُّ بِمِثْلِهِ وَاللهُ أَعْلَمُ  


See similar narrations below:

Collected by Suyūṭī
suyuti:10306a
Request/Fix translation

  

السيوطي:١٠٣٠٦a

"الْبَيتُ قِبْلَةٌ لأهْلِ الْمَسْجدِ وَالْمَسْجدُ قِبْلَةٌ لأهْلِ الْحَرَم وَالْحَرَمُ قِبْلَةٌ لأهْلِ الأرْضِ في مَشَارقِهَا وَمَغَاربهَا مِنْ أُمَّتِي".  

[ق] البيهقى في السنن وضعفه عن ابن عباس