While the people were praying in the mosque of Quba, a man came and said, "The Messenger of Allah ﷺ has had Quran revealed to him, and he has been commanded to face the Kaabah." So they turned around.
حدثنا إسماعيل بن عمر حدثنا سفيان عن عبد الله بن دينار
بينما الناس يصلون في مسجد قباء إذ جاء رجل فقال إن رسول الله ﷺ قد أنزل عليه قرآن وقد أمر أن يتوجه إلى الكعبة قال فاستداروا