וַיַּחֲלֹ֧שׁ יְהוֹשֻׁ֛עַ אֶת־עֲמָלֵ֥ק וְאֶת־עַמּ֖וֹ לְפִי־חָֽרֶב׃ (פ)
At pinahina ni Josue ang Amalek at ang kanyang bayan sa talim ng tabak.
Rashi
ויחלש יהושע AND JOSHUA DISCOMFITED [AMALEK] (more lit., he weakened Amalek) — he cut off the heads of his mighty men and left only the weak amongst them, and he did not kill all of them (leaving the weak men alive: thus Amalek was made weak, and powerless for further mischief). From this we may learn that they acted according to the expressed pronouncement of the Shechina (otherwise they would, in the stress of battle, not have so discriminated) (Mekhilta).
Chizkuni
ויחלוש יהושע את עמלק, “Joshua succeeded in weakening the armies of Amalek.” [In order to understand the following it is important to realise that in this battle we do not hear of either side suffering fatalities. The word חרב, for “lethal sword,” does not appear once. Ed. The Amalekites had employed the weapon of sorcery in order to weaken the Jewish people. The swords used had not caused a single death, hence the Torah only speaks of the Amalekites having been “weakened.”Another interpretation of the unusual expression: ויחלוש. This term was used since the Torah had previously written that when Moses’ hands had weakened וגבר עמלק, “Amalek was gaining the upper hand,” it was appropriate to use a word meaning the opposite after the battle ended, i.e. while the Israelites had gotten the upper hand, they had only succeeded in beating off the attack. On the other hand, there is an instance where the expression ויחלוש, is used as describing someone dying, i.e. וגבר ימות ויחלש, (Job 14,9).
Da'at Zekenim
ויחלוש, ”he threw a lot;” when Haman was described as looking for a suitable date to decree the destruction of the Jewish people he did so also. (Esther 3,7) There are three different words for lots which appear at different points in the Bible, (גורל, פור, חולש (ישעיה 14,14. Alternate explanation: Instead of using the customary ויכה, “he smote,” the Torah used a word meaning “he weakened,” as Amalek had read in his astrological calendar where it was indicated that not all of its soldiers would die as a result of that war. Joshua used the same method (verse 9) where he is described as selecting a relatively small number of men of military age to confront Amalek. He did not kill the Amalekites on this occasion but only disabled them from fighting by cutting of their hands or feet. Hence the verb ויחלוש is most appropriate.