when you are exposed to danger pray on foot or while riding when you are safe again remember god for he has taught you what you did not know.
فإن خفتم فرجالا أو ركبانا فإذا أمنتم فاذكروا الله كما علمكم ما لم تكونوا تعلمون