God says
… those who knew for certainty that they were destined to meet God replied: “How often has a small host overcome a great host by God’s leave! For God is with those who are patient in adversity.” – Q.2:149
If God helps you, none can ever overcome you; but if He should forsake you who could help you thereafter? In God, then, let the believers place their trust! – Q.3:160
Verily, God loves [only] those who fight in His cause in [solid] ranks,* as though they were a building firm and compact. -- Q.61:4
* I.e., in unison, with their deeds corresponding to their assertion of faith. This moral necessity is further illustrated – by its opposite – in the subsequent reference to Moses and the unruly among his followers.
Prophet said
BRAVERY& COURAGE : “(God loves) a soldier who encounters the enemies (even) though his companions are routed…” – H:Tirmizi. N: Abdullah-b-Masud
REGULAR TRAINING : “Whoever learns archery and then gives it up is not of us, or is disobedient” – H: Muslim. N: Oqbah-b-Amr.
Now archery is replaced by modern methods in order to continue individual and collective preparedness for self-defense.
UNITY : “…the hand of God is on the united body” – H: Tirmizi. N: Ibn Omar