Sahih al-Bukhari, Book 18, Hadith 14 (Bukhari 1062)

Narrated Jabir bin `Abdullah:

The Prophet (ﷺ) used to offer the Nawafil, while riding, facing a direction other than that of the Qibla.