أَخْبَرَنَا
يَحْيَى بْنُ حَسَّانَ، حَدَّثَنَا
سُلَيْمَانُ بْنُ بِلَالٍ، عَنْ
عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ
ابْنِ عُمَرَ، قَالَ: بَيْنَمَا النَّاسُ فِي صَلَاةِ الْفَجْرِ فِي قُبَاءٍ إِذْ جَاءَهُمْ رَجُلٌ، فَقَالَ: "إِنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ
أُنْزِلَ عَلَيْهِ الْقُرْآنُ، وَأُمِرَ أَنْ يَسْتَقْبِلَ الْكَعْبَةَ، فَاسْتَقْبِلُوهَا، وَكَانَ وَجُهُ النَّاسِ إِلَى الشَّامِ، فَاسْتَدَارُوا، فَوَجَّهُوا إِلَى الْكَعْبَةِ".
It is narrated from Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the people were offering the Fajr prayer in Quba when a companion came to them and said that the Qur'an has been revealed to the Messenger of Allah (peace and blessings be upon him), and he has been commanded to turn his face towards the Ka'bah. So you too turn towards the Ka'bah. And their faces were towards Shaam (Syria), then they turned around and faced the Ka'bah.
Brief Explanation
(Commentary on Hadith 1267)
By «أُنْزِلَ عَلَيْهِ الْقُرْآنُ» is meant the verse of the changing of the qiblah («﴿فَوَلِّ وَجْهَكَ شَطْرَ الْمَسْجِدِ الْحَرَامِ﴾»).