فَإِنْ خِفْتُمْ فَرِجَالًا أَوْ رُكْبَانًا فَإِذَآ أَمِنتُمْ فَٱذْكُرُوا۟ ٱللَّهَ كَمَا عَلَّمَكُم مَّا لَمْ تَكُونُوا۟ تَعْلَمُونَ
Saheeh International(239) 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.
English Translation - Rowwad Translation CenterIf you are in danger[133], then pray while walking or riding. But when you are safe, remember Allah as He taught you what you did not know.
English Translation - Hilali and Khan239. 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).