On whatever grounds Joshua was appointed, the result amply vindicated the selection. On Joshua's part there is none of that hesitation in accepting his work which was shown even by Moses himself when he got his commission at the burning bush. He seems to have accepted the appointment with humble faith and spirited enthusiasm, and prepared at once for the perilous enterprise.
And he had little enough time to prepare, for a new attack of the Amalekites was to be made next day. We may conceive him, after prayer to his Lord, setting out with a few chosen comrades to invite volunteers to join his corps, rousing their enthusiasm by picturing the dastardly attack that the Amalekites had made on the sick and infirm (Deut. xxv. 17, 18), and scattering their fears by recalling the promise to Abraham, "I will bless them that bless thee, and curse him that curseth thee." That Moses knew him to be a man of faith whose trust was in the living God was shown by his promise to stand next morning on the hill top with the rod of God in his hand. Yes, the rod of God! Had not Joshua seen it stretched out over the Red Sea, first to make a passage for Israel, and thereafter to bring back the waters on Pharaoh's host? Was he not just the man to value aright that symbol of Divine power? The troop selected by Joshua may have been small as the band of Gideon, but if it was as full of faith and courage it was abundantly able for its work!
The Amalekites are sometimes supposed to have been descendants of an Amalek who was the grandson of Esau (Gen. xxxvi. 12), but the name is much older (Gen. xiv. 7), and was applied at an early period to the inhabitants of the tract of country stretching southwards from the Dead Sea to the peninsula of Sinai. Whatever may have been their origin, they were old inhabitants of the wilderness, well acquainted probably with every mountain and valley, and well skilled in that Bedouin style of warfare which even practised troops are little able to meet. They were therefore very formidable opponents to the raw levy of Israelites, who could be but little acquainted with weapons of war, and were wholly unaccustomed to battle.
The Amalekites could not have been ignorant of the advantage of a good position, and they probably occupied a post not easy to attack and carry. Evidently the battle was a serious one. The practised and skilful tactics of the Amalekites were more than a match for the youthful valour of Joshua and his comrades; but as often as the uplifted rod of Moses was seen on the top of the neighbouring hill, new life and courage rushed into the souls of the Israelites, and for the time the Amalekites retreated before them. Hour after hour the battle raged, till the arm of Moses became too weary to hold up the rod. A stone had to be found for him to sit on, and his comrades, Aaron and Hur, had to hold up his hands. But even then, though the advantage was on the side of Joshua, it was sunset before Amalek was thoroughly defeated. The issue of the battle was no longer doubtful--"Joshua discomfited Amalek and his people with the edge of the sword" (Exod. xvii. 13).
It was a memorable victory, due in effect to the hand of God as really as the destruction of the Egyptians had been, but due instrumentally to the faith and fortitude of Joshua and his troop, whose ardour could not be quenched by the ever-resumed onslaughts of Amalek. And when the fight was over, Joshua could not but be the hero of the camp and the nation, as really as David after the combat with Goliath. Congratulations must have poured on him from every quarter, and not only on him, but on his father and grandfather as well. To Joshua these would come with mingled feelings; gratification at having been able to do such a service for his people, and gratitude for the presence of Him by whom alone he had prevailed. "Not unto us, Lord, not unto us, but to Thy name be the glory." It was a splendid beginning for Israel's wilderness history, if only it had been followed up by the people in a kindred spirit. But there were not many Joshuas in the camp, and the spirit did not spread.