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:4794Wakīʿ > Sufyān > ʿAbdullāh b. Dīnār > Ibn ʿUmar

[Machine] While people were in Masjid Quba during the Fajr prayer, a man came to them and said, "Indeed, the Messenger of Allah ﷺ has received a revelation, and he has turned his face towards the Kaaba." They then turned their attention towards him.  

أحمد:٤٧٩٤حَدَّثَنَا وَكِيعٌ عَنْ سُفْيَانَ عَنْ عَبْدِ اللهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ قَالَ

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