The Cow - 2:239 If you are anxious and worried, (perform the prayer) on foot or on horseback. When you are safe, remember Allah as He taught you what you did not know.
Related:
The Cow/2:239 If you are anxious and worried, (perform the prayer) on foot or on horseback. When you are safe, remember Allah as He taught you what you did not know.

The Women/4:101 When you set out on a journey for war in the land, there is no harm in shortening your prayers if you fear that the disbelievers may attack you. Surely the disbelievers are your open enemies.
The Women/4:102 And when you are among them and you lead them in prayer, let a group of them be with you to guard you, and let them take their weapons with them. When those who have prayed prostrate, let them stand behind you. Then let the group who have not prayed come and pray with you, and let the group who have finished praying take their weapons and stand guard. The disbelievers hope that you will be careless with your weapons and your belongings so that they may defeat you in a sudden raid. It is permissible for you to leave your weapons because of rain or illness. But be on the alert. Allah has prepared for the disbelievers a humiliating torment.
The Women/4:103 When you have finished the prayer, remember Allah standing, sitting and lying down. When you are safe, observe the prayer. Prayer has been made obligatory on the believers at fixed times.