Page 39
fa-ʾin khiftum fa-rijālan ʾaw rukbānan fa-ʾidhā ʾamintum fa-dhkurū llāha ka-mā ʿallamakum mā lam takūnū taʿlamūna
and should you fear [a danger], then [pray] on foot or mounted, and when you are safe remember Allah, as He taught you what you did not know.
— Ali Quli Qarai
Surah Al-Baqarah, Verse 239
239. "And if you fear (an enemy or danger), then (pray) on foot or riding; but when you are safe, then remember Allah as He has taught you that which you did not know."
In this verse it emphasizes that you cannot abandon establishing prayers even in the most grievous conditions such as in the battlefield. But in circumstances like that many of the obligations of prayer are diminished, for example: being to the direction of Qiblah, the performances of bowing and prostration in ordinary manner, and so on. Hence, it says:
Therefore, constant attending to prayers is not only for the time of security and safety, but canonical prayers should be kept always and in any condition.
And, when you are in security, then prayers in this status have to be kept in the ordinary form and with all their ritual manners and conditions. It is clear that the thankfulness of servants due to this divine teaching, in which He has taught them the way of establishing prayers both in the secured time and in fear, is by way of the very performance of them, as they should be kept.