Sahih Muslim, Book 4, Hadith 279 (Muslim 1110)

Ibn 'Umar said:

The Apostle of Allah (ﷺ) used to place his camel (towards the Ka'ba) and said prayer in its direction.