While the people were performing the dawn prayer at the mosque of Quba, someone came and announced, "Allah has revealed to the Prophet ﷺ verses commanding him to face the Kaabah, so face it." They then turned toward the Kaabah.
حدثنا مسدد حدثنا يحيى عن سفيان عن عبد الله بن دينار
بينا الناس يصلون الصبح في مسجد قباء إذ جاء جاء فقال أنزل الله على النبي ﷺ قرآنا أن يستقبل الكعبة فاستقبلوها فتوجهوا إلى الكعبة