Prophetic Commentary on the Qur'an (Tafseer of the Prophet (pbuh))

Bukhari :: Book 6 :: Volume 60 :: Hadith 17

Narrated Ibn 'Umar:

While some people were offering morning prayer at Quba' a man came to them and said, "A Quranic Order has been revealed to Allah's Apostle tonight that he should face the Ka'ba at Mecca (in prayer), so you too should turn your faces towards it." At that moment their faces were towards Sham (i.e. Jerusalem) (and on hearing that) they turned towards the Ka'ba (at Mecca).

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star