Sahih al-Bukhari 4494
Book 65: Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh)) · Hadith 21
Hadith text
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)
Ibn Umar bataate hain: Jab kuch log Quba ki masjid mein Fajr ki namaz padh rahe the, koi unke paas aaya aur kaha, 'Aaj raat Allah ke Rasool (SAW) par Quran naazil hua hai, aur unhe Kaaba ki taraf rukh karne ka hukm diya gaya hai, isliye tum bhi usi ki taraf rukh karo.' Us waqt unka rukh Sham (Yerushalem) ki taraf tha, to wo Qibla (Kaaba) ki taraf mud gaye.
Sahih al-Bukhari 4494 · Book 65, Hadith 21
Read all hadith in Book 65: Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh))