Sahih al-Bukhari 403
Book 8: Prayers (Salat) · Hadith 55
Hadith text
Narrated `Abdullah bin `Umar:While the people were offering the Fajr prayer at Quba' (near Medina), someone came to them and said: "It has been revealed to Allah's Messenger (ﷺ) tonight, and he has been ordered to pray facing the Ka`ba." So turn your faces to the Ka`ba. Those people were facing Sham (Jerusalem) so they turned their faces towards Ka`ba (at Mecca)
Abdullah bin Umar (رضی اللہ عنہما) se riwayat hai ke jab log Quba (Madina ke qareeb) mein Fajr padh rahe the, kisi ne aakar kaha: "Aaj raat Allah ke Rasool par wahi nazil hui hai aur unhe Ka'ba ki taraf mun karke namaz padhne ka hukum diya gaya, isliye apna mun Ka'ba ki taraf karo." Woh log Sham (Jerusalem) ki taraf mun kiye the, isliye unhone apna mun Ka'ba (Mecca) ki taraf mod liya.
Sahih al-Bukhari 403 · Book 8, Hadith 55