Sahih al-Bukhari 4494
صحيح البخاري#4494SahihNarrated Ibn `Umar:While some people were offering Fajr prayer at Quba mosque, someone came to them and said, "Qur'anic literature" has been revealed to Allah's Messenger (ﷺ) tonight, and he has been ordered to face the Ka`ba (of Mecca) so you too, should turn your faces towards it. Their faces were then towards Sham (Jerusalem), so they turned towards the Qibla (i.e. Ka`ba of Mecca)
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih al-Bukhari is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 65:21