Ibrahim (may Allah have mercy on him) said in the explanation of the verse «فإن خفتم فرجالا أو ركبانا»: This is for the time of fighting, that a person should pray facing whichever direction he is able, and he may also pray on his mount, performing bowing and prostration with gestures of the head.
Hadith Referenceسنن سعید بن منصور / كتاب الجهاد / 3694
Hadith Takhrij«أخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 409، 410، 2513، 2517، وعبد الرزاق فى «مصنفه» برقم: 4260، 4266، وابن أبى شيبة فى «مصنفه» برقم: 8347، 8351»