It is narrated from Sayyiduna Abu Musa al-Ash'ari (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "(Voluntary) prayer on the back of a riding animal may be offered like this, like this and like this (that is, in whichever direction the mount is facing)."
Hadith Referenceالمعجم الأوسط / باب الألف / 2427
Hadith Gradingمحدثین:فيه يونس بن الحارث مختلف فيه
Hadith Takhrij«قال بدر الدين العيني: يونس بن الحارث وثقه ابن معين وضعفه أحمد وغيره «عمدة القاري شرح صحيح البخاري، ج 7، ص 143»» «أخرجه أحمد فى «مسنده» برقم: 20015»