فَاِنۡ خِفۡتُمۡ فَرِجَالًا اَوۡ رُكۡبَانًا ۚ فَاِذَآ اَمِنۡتُمۡ فَاذۡکُرُوا اللّٰهَ کَمَا عَلَّمَکُمۡ مَّا لَمۡ تَكُوۡنُوۡا تَعۡلَمُوۡنَ(البقرة :239)
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.
وَاِذَا ضَرَبۡتُمۡ فِى الۡاَرۡضِ فَلَيۡسَ عَلَيۡكُمۡ جُنَاحٌ اَنۡ تَقۡصُرُوۡا مِنَ الصَّلٰوةِ ۖ اِنۡ خِفۡتُمۡ اَنۡ يَّفۡتِنَكُمُ الَّذِيۡنَ كَفَرُوۡا ؕ اِنَّ الۡـكٰفِرِيۡنَ كَانُوۡا لَـكُمۡ عَدُوًّا مُّبِيۡنًا(النساء :101)
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.
وَاِذَا كُنۡتَ فِيۡهِمۡ فَاَقَمۡتَ لَهُمُ الصَّلٰوةَ فَلۡتَقُمۡ طَآٮِٕفَةٌ مِّنۡهُمۡ مَّعَكَ وَلۡيَاۡخُذُوۡۤا اَسۡلِحَتَهُمۡ فَاِذَا سَجَدُوۡا فَلۡيَكُوۡنُوۡا مِنۡ وَّرَآٮِٕكُمۡ ۖ وَلۡتَاۡتِ طَآٮِٕفَةٌ اُخۡرٰى لَمۡ يُصَلُّوۡا فَلۡيُصَلُّوۡا مَعَكَ وَلۡيَاۡخُذُوۡا حِذۡرَهُمۡ وَاَسۡلِحَتَهُمۡ ۚ وَدَّ الَّذِيۡنَ كَفَرُوۡا لَوۡ تَغۡفُلُوۡنَ عَنۡ اَسۡلِحَتِكُمۡ وَاَمۡتِعَتِكُمۡ فَيَمِيۡلُوۡنَ عَلَيۡكُمۡ مَّيۡلَةً وَّاحِدَةً ؕ وَلَا جُنَاحَ عَلَيۡكُمۡ اِنۡ كَانَ بِكُمۡ اَ ذًى مِّنۡ مَّطَرٍ اَوۡ كُنۡـتُمۡ مَّرۡضٰۤى اَنۡ تَضَعُوۡۤا اَسۡلِحَتَكُمۡ ۚ وَ خُذُوۡا حِذۡرَكُمۡ ؕ اِنَّ اللّٰهَ اَعَدَّ لِلۡكٰفِرِيۡنَ عَذَابًا مُّهِيۡنًا(النساء :102)
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.
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: