Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:8:45

O you who have believed, when you encounter a company ˹from the enemy forces˺, stand firm and remember Allah much that you may be successful.  

O you who believe, when you meet a host, a group of disbelievers, then stand firm, to fight them and do not ˹flee in˺ retreat, and remember God much, call upon Him for victory, that you may succeed, ˹that you may˺ triumph.
القرآن:٨:٤٥

يَا أَيُّهَا الَّذِينَ آمَنُوا إِذَا لَقِيتُمْ فِئَةً فَاثْبُتُوا وَاذْكُرُوا اللَّهَ كَثِيرًا لَعَلَّكُمْ تُفْلِحُونَ  

{يا أيها الذين آمنوا إذا لقيتم فئة} جماعة كافرة {فاثبتوا} لقتالهم ولا تنهزموا {واذكروا الله كثيرا} ادعوه بالنصر {لعلكم تفلحون} تفوزون.