فَإِنۡ خِفۡتُمۡ فَرِجَالًا أَوۡ رُكۡبَانٗاۖ فَإِذَآ أَمِنتُمۡ فَٱذۡكُرُواْ ٱللَّهَ كَمَا عَلَّمَكُم مَّا لَمۡ تَكُونُواْ تَعۡلَمُونَ
Rowwad Translation Center
If you are in danger[1], then pray while walking or riding. But when you are safe, remember Allah as He taught you what you did not know.
Notes
[1] Of an imminent danger such as enemies and the like.
Translation: Rowwad Translation Center. Source: QuranEnc.com, version 1.0.20.
Arabic text: King Fahd Glorious Quran Printing Complex. Surah details: Tanzil.net (CC BY 3.0).
This is a translation of the meanings of the Quran. Like any human work, it may contain errors.