فَاِنْخِفْتُمْفَرِجَالًااَوْرُكْبَانًافَاِذَآاَمِنْتُمْفَاذْكُرُوااللّٰهَكَمَاعَلَّمَكُمْمَّالَمْتَكُوْنُوْاتَعْلَمُوْنَ٢٣٩
fa‑in khiftum farijaalan aw rukbaanan fa‑idzaa amintum faudzkuruu allaaha kamaa 'allamakum maa lam takuunuu ta'lamuuna
And if you fear [an enemy, then pray] on foot or riding. But when you are secure, then remember Allah [in prayer], as He has taught you that which you did not [previously] know. [239]
— Sahih International