And if you fear [an enemy, then pray] on foot or riding. But when you are secure, then remember Allāh [in prayer], as He has taught you that which you did not [previously] know.
Verse 239 of Surah Al-Baqarah (2:239), a Medinan surah, is in juz 2, on page 39 of the mushaf. Read it in Arabic with its transliteration, translations and tafsir, and listen to it recited by 69 reciters.
Listen to verse 239 of Surah Al-Baqarah
75 recitations by 69 reciters: pick one and it plays in the player.
All voices (75)
Tafsir of verse 239
Al-Mukhtasar
If you face danger from an enemy or any other danger, and you are not able to offer the prayer completely, then pray whilst walking or riding, on camels, horses, or in any way you can. If the danger has gone, remember Allah as He has taught you: remembering Him in the most complete manner within the prayer. Also, remember Him for His having taught you guidance and given you light which you were previously unaware of.
If you are in danger133, then pray while walking or riding. But when you are safe, remember Allah as He taught you what you did not know.
Notes
[133] Of an imminent danger such as enemies and the like.
And if you fear (an enemy), perform Salât (pray) on foot or riding.63 And when you are in safety, offer the Salât (prayer) in the manner He has taught you, which you knew not (before).
Notes
[63] (V.2:239) Narrated Sâlih Khawwat or Sahl bin Abî Hathmah concerning those who witnessed the Fear Prayer that was performed in the battle of Dhat-ur-Riqa‘ in the company of Allâh’s Messenger صلى الله عليه وسلم: One batch lined up behind him while another batch (lined up) facing the enemy. The Prophet صلى الله عليه وسلم led the batch that was with him in one Rak‘ah, and he stayed in the standing posture while that batch completed their (two Rak‘at) prayer by themselves and went away, lining in the face of the enemy, while the other batch came and he (i.e. the Prophet صلى الله عليه وسلم) offered his remaining Rak‘ah with them, and then, kept on sitting till they completed their prayer by themselves, and he then finished his prayer with Taslîm along with them. [Sahih Al-Bukhâri, Vol. 5, Hadîth No.451].
And if ye go in fear, then (pray) standing or on horseback. And when ye are again in safety, remember Allah, as He hath taught you that which (heretofore) ye knew not.
If ye fear (an enemy), pray on foot, or riding, (as may be most convenient), but when ye are in security, celebrate Allah's praises in the manner He has taught you, which ye knew not (before).
But if you are in danger, then (say your prayers) on foot or on horseback; and when you are secure, then remember Allah, as. He has taught you what you did not know.
Yet, in case you fear (the enemy), then (pray) afoot or riding; so when you are secure, then remember Allah, as He taught you that (i.e., the prayers) which you did not know.
And when you [i.e., the commander of an army] are among them and lead them in prayer, let a group of them stand [in prayer] with you and let them carry their arms. And when they have prostrated, let them be [in position] behind you and have the other group come forward which has not [yet] prayed and let them pray with you, taking precaution and carrying their arms. Those who disbelieve wish that you would neglect your weapons and your baggage so they could come down upon you in one [single] attack. But there is no blame upon you, if you are troubled by rain or are ill, for putting down your arms, but take precaution. Indeed, Allāh has prepared for the disbelievers a humiliating punishment. …
Verses with similar wording
They share a sequence of words with this verse: useful for telling them apart when memorising.
Just as We have sent among you a messenger from yourselves reciting to you Our verses and purifying you and teaching you the Book and wisdom and teaching you that which you did not know.