Hadith.1341 - Abd al-Rahman ibn Abi Abdullah reported from Imam Jafar ibn Muhammad Al-Sadiq عليه السلام regarding the prayer during advancing troops (battle or combat).
Imam عليه السلام said: "You say the takbir (proclaiming 'Allahu Akbar') and tahleel (proclaiming 'La ilaha illAllah سبحانه وتعالى').
Allah سبحانه وتعالى, the Mighty and Majestic, says: 'But if you fear [an enemy], then [pray] on foot or while riding' (Surah Al-Baqarah 2:239)”.