وَأَنْبَأَنَا مَالِكُ بْنُ أَنَسٍ ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ ، قَالَ : بَيْنَمَا النَّاسُ بِقُبَاءَ فِي صَلاةِ الصُّبْحِ إِذْ جَاءَهُمْ آتٍ , فَقَالَ : إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَدْ أُنْزِلَ عَلَيْهِ اللَّيْلَةَ قُرْآنٌ , " وَقَدْ أُمِرَ أَنْ نَسْتَقْبِلَ الْكَعْبَةَ , فَاسْتَقْبِلُوهَا " , وَكَانَتْ وُجُوهُهُمْ إِلَى الشَّامِ , فَاسْتَدَارُوا إِلَى الْكَعْبَةِ .
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them) that the people were performing the Fajr prayer in Quba when a person came and said: Revelation has come to Allah’s Messenger (peace and blessings be upon him) tonight, and we have been commanded to pray facing the Ka’bah, so turn your faces towards the Ka’bah. Their faces were towards Shaam, so they turned towards the Ka’bah.