239فَإِن خِفتُم فَرِجالًا أَو رُكبانًا ۖ فَإِذا أَمِنتُم فَاذكُرُوا اللَّهَ كَما عَلَّمَكُم ما لَم تَكونوا تَعلَمونَ(Irfan-ul-Quran)Should you be in a state of fear, then (do offer Prayer) whether on foot or while riding (as the case may be), but once you get back to peace, remember Allah in the manner He has taught you which you did not know (before).