Sahih Bukhari Volume 002, Book 020, Hadith Number 202.
Hadith Section/Book: Sahih Bukhari Sahih Bukhari Book 20. Shortening The Prayers (At-Taqseer)
Narated By 'Amir bin Rabi'a : I saw the Prophet on his Mount praying Nawafil by nodding his head, whatever direction he faced, but Allah's Apostle never did the same in offering the compulsory prayers. Narrated Salim At night'Abdullah bin 'Umar used to offer the prayer on the back of his animal during the journey and never cared about the direction he faced. Ibn 'Umar said, "Allah's Apostle used to offer the optional prayer on the back of his Mount facing any direction and also used to pray the Witr on it but never offered the compulsory prayer on it."