It is narrated from al-Hasan (may Allah have mercy on him) that he saw no harm in offering voluntary prayer while driving camels, in whichever direction they faced. If he reached a verse of prostration, he would recite it and prostrate.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 2204