Abdullah bin Umar reported,

While the people were at Quba performing the dawn prayer, someone came to them and said, "Quran was revealed to the Prophet ﷺ last night, and he has been commanded to face the Kaabah, so face it." Their faces had been toward Sham, so they turned to face the Kaabah.

Bukhari 4491

Sahih

حدثنا يحيى بن قزعة حدثنا مالك عن عبد الله بن دينار

عن ابن عمر قال

بينا الناس بقباء في صلاة الصبح إذ جاءهم آت فقال إن النبي ﷺ قد أنزل عليه الليلة قرآن وقد أمر أن يستقبل الكعبة فاستقبلوها وكانت وجوههم إلى الشأم فاستداروا إلى الكعبة

البخاري 4491صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
Those to whom We gave the Scripture know him as they know their own sons, but a party of them conceal the truth" until His saying "of the doubters
Numbering
Darussalam 4491
Bukhari 4491