كتاب التفسير
65  
Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh))
(20)
"And from wheresoever you start forth (for prayers), turn your face in the direction of Al-Masjid-al-Harãm (at Makkah), and wheresoever you are, turn your face towards it [when you pray)]..." (V.2:150)
(20)
Sahih al-Bukhari 4494

Narrated 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).

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، عَنْ مَالِكٍ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ، قَالَ بَيْنَمَا النَّاسُ فِي صَلاَةِ الصُّبْحِ بِقُبَاءٍ إِذْ جَاءَهُمْ آتٍ فَقَالَ إِنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَدْ أُنْزِلَ عَلَيْهِ اللَّيْلَةَ، وَقَدْ أُمِرَ أَنْ يَسْتَقْبِلَ الْكَعْبَةَ، فَاسْتَقْبِلُوهَا‏.‏ وَكَانَتْ وُجُوهُهُمْ إِلَى الشَّأْمِ فَاسْتَدَارُوا إِلَى الْقِبْلَةِ‏.‏
Reference : Sahih al-Bukhari 4494
In-book reference : Book 65, Hadith 21
USC-MSA web (English) reference : Vol. 6, Book 60, Hadith 21
  (deprecated numbering scheme)