The Prophet (ﷺ) used to offer the Nawafil, while riding, facing a direction other than that of the Qibla.
Sahih al-Bukhari Book 18, Hadith 14