Sahih Bukhari – Hadith No : 4533

Narrated Al-Bara: We prayed along with the Prophet facing Jerusalem for sixteen or seventeen months. Then Allah ordered him to turn his face towards the Qibla (in Mecca):– “And from whence-so-ever you start forth (for prayers) turn your face in the direction of (the Sacred Mosque of Mecca) Al-Masjid-ul Haram..” (2.149)

Hadith In Arabic Text :

حدثنا محمد بن المثنى، حدثنا يحيى، عن سفيان، حدثني أبو إسحاق، قال سمعت البراء رضى الله عنه قال صلينا مع النبي صلى الله عليه وسلم نحو بيت المقدس ستة عشر أو سبعة عشر شهرا، ثم صرفه نحو القبلة‏.‏

Chapter : Prophetic Commentary on the Qur’an (Tafseer of the Prophet (pbuh)) – كتاب التفسير