John Calvin's Bible Commentary
Joshua 24:8
8.And I brought you into the land, etc He at length begins to discourse of the victories which opened a way for the occupation of their settlements. For although the country beyond the Jordan had not been promised as part of the inheritance, yet, as God, by his decree, joined it to the land of Canaan as a cumulative expression of his bounty, Joshua, not without cause, connects it with the other in commending the divine liberality towards the people, and declares, not merely that trusting to divine aid, they had proved superior in arms and strength, but had also been protected from the fatal snares which Balak had laid for them. For although the impostor Balaam was not able to effect anything by his curses and imprecations, it was, however, very profitable to observe the admirable power of God displayed in defeating his malice. For it was just as if he had come to close quarters, and warred with everything that could injure them.
The more firmly to persuade them that they had overcome not merely by the guidance of God, but solely by his power, he repeats what we read in the books of Moses, (Deuteronomy 7:20) that hornets were sent to rout the enemy without human hand. This was a more striking miracle than if they had been routed, put to flight, and scattered in any other way. For those who, contrary to expectation, gain a victory without any difficulty, although they confess that the prosperous issue of the war is the gift of God, immediately allow themselves to become blinded by pride, and transfer the praise to their own wisdom, activity, and valor. But when the thing is effected by hornets, the divine agency is indubitably asserted. Accordingly, the conclusion is, that the people did not acquire the land by their own sword or bow, a conclusion repeated in Psalms 44:3, and apparently borrowed from the passage here. Lastly, after reminding them that they ate the fruits provided by other men’s labors, he exhorts them to love God as his beneficence deserves.