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 illa Allah سبحانه وتعالى'). Allah سبحانه وتعالى, the Mighty and Majestic, says: 'But if you fear [an enemy], then [pray] on foot or while riding' (Surah Al-Baqarah 2:239)”.