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.
ahmad:5827Ismāʿīl b. ʿUmar > Sufyān > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] "While people were praying in the Quba Mosque, a man came and said, 'Indeed, the Messenger of Allah ﷺ has received a revelation, and he has been commanded to turn his face towards the Kaaba.' So they turned around."  

أحمد:٥٨٢٧حَدَّثَنَا إِسْمَاعِيلُ بْنُ عُمَرَ حَدَّثَنَا سُفْيَانُ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ قَالَ

بَيْنَمَا النَّاسُ يُصَلُّونَ فِي مَسْجِدِ قُبَاءَ إِذْجَاءَ رَجُلٌ فَقَالَ إِنَّ رَسُولَ اللهِ ﷺ قَدْ أُنْزِلَ عَلَيْهِ قُرْآنٌ وَقَدْ أُمِرَ أَنْ يَتَوَجَّهَ إِلَى الْكَعْبَةِ قَالَ فَاسْتَدَارُوا  


See similar narrations below:

Collected by Mālik, Dārimī
malik:14-7Yaḥyá > Mālik > ʿAbdullāh b. Dīnār > ʿAbdullāh b. ʿUmar

Yahya related to me from Malik from Abdullah ibn Dinar that Abdullah ibn Umar said, "On one occasion when the people were praying subhat Quba a man came to them and said, 'A piece of Qur'an was sent down to the Messenger of Allah ﷺ last night, and he was ordered to face the Kaba, so face it.' They had been facing ash-Sham, so they turned round and faced the Kaba.''  

مالك:١٤-٧حَدَّثَنِي يَحْيَى عَنْ مَالِكٍ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

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

darimi:1270Yaḥyá b. Ḥassān > Sulaymān b. Bilāl > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] While people were performing the Fajr prayer in Quba, a man came to them and said, "Verily, the Messenger of Allah ﷺ has been revealed the Quran and he has been commanded to face the Kaaba in prayer, so face towards it." The people's faces were initially directed towards Sham (Syria) but they turned and faced towards the Kaaba.  

الدارمي:١٢٧٠أَخْبَرَنَا يَحْيَى بْنُ حَسَّانَ حَدَّثَنَا سُلَيْمَانُ بْنُ بِلَالٍ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ قَالَ

بَيْنَمَا النَّاسُ فِي صَلَاةِ الْفَجْرِ فِي قُبَاءٍ إذ جَاءَهُمْ رَجُلٌ فَقَالَ «إِنَّ رَسُولَ اللَّهِ ﷺ أُنْزِلَ عَلَيْهِ الْقُرْآنُ وَأُمِرَ أَنْ يَسْتَقْبِلَ الْكَعْبَةَ فَاسْتَقْبِلُوهَا وَكَانَ وُجهُ النَّاسِ إِلَى الشَّامِ فَاسْتَدَارُوا فَوَجَّهُوا إِلَى الْكَعْبَةِ»