If you are in danger, pray when you are out walking or riding; when you are safe again, remember God, for He has taught you what you did not know.
If ye fear (an enemy), pray on foot, or riding, (as may be most convenient), but when ye are in security, celebrate Allah's praises in the manner He has taught you, which ye knew not (before).