I saw the Prophet (p.b.u.h) offering the prayer on his mount (Rahila) whatever direction it took.
Sahih al-Bukhari Book 18, Hadith 13