صحيح البخاري
From Sahih Bukhari (Hadith 1094):
Narrated Jabir bin `Abdullah:The Prophet (ﷺ) used to offer the Nawafil, while riding, facing a direction other than that of the Qibla
Reference: Bukhari 1094