Surah [2] Al-Baqara : 239

فَاِنۡ خِفۡتُمۡ فَرِجَالًا اَوۡ رُكۡبَانًا ‌‌ ۚ فَاِذَآ اَمِنۡتُمۡ فَاذۡکُرُوا اللّٰهَ کَمَا عَلَّمَکُمۡ مَّا لَمۡ تَكُوۡنُوۡا تَعۡلَمُوۡنَ(البقرة :239)

فَإِنْ
And if
خِفْتُمْ
you fear
فَرِجَالًا
then (pray) on foot
أَوْ
or
رُكْبَانًاۖ
riding
فَإِذَآ
Then when
أَمِنتُمْ
you are secure
فَٱذْكُرُوا۟
then remember
ٱللَّهَ
Allah
كَمَا
as
عَلَّمَكُم
He (has) taught you
مَّا
what
لَمْ
not
تَكُونُوا۟
you were
تَعْلَمُونَ
knowing

Fain khiftum farijalan aw rukbanan faitha amintum faothkuroo Allaha kama 'allamakum ma lam takoonoo ta'lamoona

Sahih International:

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.

Tafsir (More Translations)
Surah [4] An-Nisa' : 101

وَاِذَا ضَرَبۡتُمۡ فِى الۡاَرۡضِ فَلَيۡسَ عَلَيۡكُمۡ جُنَاحٌ اَنۡ تَقۡصُرُوۡا مِنَ الصَّلٰوةِ ‌ۖ اِنۡ خِفۡتُمۡ اَنۡ يَّفۡتِنَكُمُ الَّذِيۡنَ كَفَرُوۡا‌ ؕ اِنَّ الۡـكٰفِرِيۡنَ كَانُوۡا لَـكُمۡ عَدُوًّا مُّبِيۡنًا‏(النساء :101)

وَإِذَا
And when
ضَرَبْتُمْ
you travel
فِى
in
ٱلْأَرْضِ
the earth
فَلَيْسَ
then not
عَلَيْكُمْ
upon you
جُنَاحٌ
(is) any blame
أَن
that
تَقْصُرُوا۟
you shorten
مِنَ
[of]
ٱلصَّلَوٰةِ
the prayer
إِنْ
if
خِفْتُمْ
you fear
أَن
that
يَفْتِنَكُمُ
(may) harm you
ٱلَّذِينَ
those who
كَفَرُوٓا۟ۚ
disbelieved
إِنَّ
Indeed
ٱلْكَٰفِرِينَ
the disbelievers
كَانُوا۟
are
لَكُمْ
for you
عَدُوًّا
an enemy
مُّبِينًا
open

Waitha darabtum fee alardi falaysa 'alaykum junahun an taqsuroo mina alssalati in khiftum an yaftinakumu allatheena kafaroo inna alkafireena kanoo lakum 'aduwwan mubeenan

Sahih International:

And when you travel throughout the land, there is no blame upon you for shortening the prayer, [especially] if you fear that those who disbelieve may disrupt [or attack] you. Indeed, the disbelievers are ever to you a clear enemy.

Tafsir (More Translations)
Surah [4] An-Nisa' : 102

وَاِذَا كُنۡتَ فِيۡهِمۡ فَاَقَمۡتَ لَهُمُ الصَّلٰوةَ فَلۡتَقُمۡ طَآٮِٕفَةٌ مِّنۡهُمۡ مَّعَكَ وَلۡيَاۡخُذُوۡۤا اَسۡلِحَتَهُمۡ فَاِذَا سَجَدُوۡا فَلۡيَكُوۡنُوۡا مِنۡ وَّرَآٮِٕكُمۡ ۖ وَلۡتَاۡتِ طَآٮِٕفَةٌ اُخۡرٰى لَمۡ يُصَلُّوۡا فَلۡيُصَلُّوۡا مَعَكَ وَلۡيَاۡخُذُوۡا حِذۡرَهُمۡ وَاَسۡلِحَتَهُمۡ‌ ۚ وَدَّ الَّذِيۡنَ كَفَرُوۡا لَوۡ تَغۡفُلُوۡنَ عَنۡ اَسۡلِحَتِكُمۡ وَاَمۡتِعَتِكُمۡ فَيَمِيۡلُوۡنَ عَلَيۡكُمۡ مَّيۡلَةً وَّاحِدَةً‌ ؕ وَلَا جُنَاحَ عَلَيۡكُمۡ اِنۡ كَانَ بِكُمۡ اَ ذًى مِّنۡ مَّطَرٍ اَوۡ كُنۡـتُمۡ مَّرۡضٰۤى اَنۡ تَضَعُوۡۤا اَسۡلِحَتَكُمۡ‌ ۚ وَ خُذُوۡا حِذۡرَكُمۡ‌ ؕ اِنَّ اللّٰهَ اَعَدَّ لِلۡكٰفِرِيۡنَ عَذَابًا مُّهِيۡنًا(النساء :102)

وَإِذَا
And when
كُنتَ
you are
فِيهِمْ
among them
فَأَقَمْتَ
and you lead
لَهُمُ
for them
ٱلصَّلَوٰةَ
the prayer
فَلْتَقُمْ
then let stand
طَآئِفَةٌ
a group
مِّنْهُم
of them
مَّعَكَ
with you
وَلْيَأْخُذُوٓا۟
and let them take
أَسْلِحَتَهُمْ
their arms
فَإِذَا
Then when
سَجَدُوا۟
they have prostrated
فَلْيَكُونُوا۟
then let them be
مِن
from
وَرَآئِكُمْ
behind you
وَلْتَأْتِ
and let come (forward)
طَآئِفَةٌ
a group
أُخْرَىٰ
other
لَمْ
(which has) not
يُصَلُّوا۟
prayed
فَلْيُصَلُّوا۟
and let them pray
مَعَكَ
with you
وَلْيَأْخُذُوا۟
and let them take
حِذْرَهُمْ
their precautions
وَأَسْلِحَتَهُمْۗ
and their arms
وَدَّ
Wished
ٱلَّذِينَ
those who
كَفَرُوا۟
disbelieved
لَوْ
if
تَغْفُلُونَ
you neglect
عَنْ
[about]
أَسْلِحَتِكُمْ
your arms
وَأَمْتِعَتِكُمْ
and your baggage
فَيَمِيلُونَ
so (that) they (can) assault
عَلَيْكُم
[upon] you
مَّيْلَةً
(in) an attack
وَٰحِدَةًۚ
single
وَلَا
But (there is) no
جُنَاحَ
blame
عَلَيْكُمْ
upon you
إِن
if
كَانَ
was
بِكُمْ
with you
أَذًى
any trouble
مِّن
(because) of
مَّطَرٍ
rain
أَوْ
or
كُنتُم
you are
مَّرْضَىٰٓ
sick
أَن
that
تَضَعُوٓا۟
you lay down
أَسْلِحَتَكُمْۖ
your arms
وَخُذُوا۟
but take
حِذْرَكُمْۗ
your precautions
إِنَّ
Indeed
ٱللَّهَ
Allah
أَعَدَّ
has prepared
لِلْكَٰفِرِينَ
for the disbelievers
عَذَابًا
a punishment
مُّهِينًا
humiliating

Waitha kunta feehim faaqamta lahumu alssalata faltaqum taifatun minhum ma'aka walyakhuthoo aslihatahum faitha sajadoo falyakoonoo min waraikum waltati taifatun okhra lam yusalloo falyusalloo ma'aka walyakhuthoo hithrahum waaslihatahum wadda allatheena kafaroo law taghfuloona 'an aslihatikum waamti'atikum fayameeloona 'alaykum maylatan wahidatan wala junaha 'alaykum in kana bikum athan min matarin aw kuntum marda an tada'oo aslihatakum wakhuthoo hithrakum inna Allaha a'adda lilkafireena 'athaban muheenan

Sahih International:

And when you are among them and lead them in prayer, let a group of them stand [in prayer] with you and let them carry their arms. And when they have prostrated, let them be [in position] behind you and have the other group come forward which has not [yet] prayed and let them pray with you, taking precaution and carrying their arms. Those who disbelieve wish that you would neglect your weapons and your baggage so they could come down upon you in one [single] attack. But there is no blame upon you, if you are troubled by rain or are ill, for putting down your arms, but take precaution. Indeed, Allah has prepared for the disbelievers a humiliating punishment.

Tafsir (More Translations)

Complete Indexing of Quran Topics

We have indexed and found 3 verses about or related to (including the word(s)) "Prayers, in travel and attack" and tags:salat,namaz.

For your information, the verses as described above: