Sahih Bukhari Volume 009, Book 091, Hadith Number 357.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 91. Accepting Information given by a Truthful Person
Narrated By 'Abdullah bin 'Umar : While the people were at Quba offering the morning prayer, suddenly a person came to them saying, "Tonight Divine Inspiration has been revealed to Allah's Apostle and he has been ordered to face the Ka'ba (in prayers): therefore you people should face it." Their faces were towards Sham, so they turned their faces towards the Ka'ba (at Mecca).