We have here an account of the improvement which the Israelites made of their victory over Ai. 1. They put all to the sword, not only in the field, but in the city, man, woman, and child, none of them remained, Josh. 8:24. God, the righteous Judge, had passed this sentence upon them for their wickedness, so that the Israelites were only the ministers of his justice and the executioners of his doom. Once in this story, and but once, mention is made of the men of Beth-el, as confederates with the men of Ai, Josh. 8:17. Though they had a king of their own, and were not subjects to the king of Ai (for the king of Beth-el is reckoned among the thirty-one kings that Joshua destroyed, Josh. 12:16), yet Ai being a stronger place they threw themselves into that, for their own safety, and the strengthening of their neighbours’ hands, and so (we may presume) were all cut off with them; thus that by which they hoped to prevent their own ruin hastened it. The whole number of the slain, it seems, was but 12,000, and inconsiderable body to make head against all the thousands of Israel; but those whom God will destroy he infatuates. Here it is said (Josh. 8:26) that Joshua drew not his hand back wherewith he stretched out the spear (Josh. 8:18) till the slaughter was completed. Some think the spear he stretched out was not to slay the enemies, but to animate and encourage his own soldiers, some flag or ensign being hung out at the end of this spear; and they observe it as an instance of his self-denial that though the fire of courage wherewith his breast was filled would have pushed him forward, sword in hand, into the hottest of the action, yet, in obedience to God, he kept the inferior post of a standard-bearer, and did not quit it till the work was done. By the spear stretched out, he directed the people to expect their help from God, and to him to give the praise. 2. They plundered the city and took all the spoil to themselves, Josh. 8:27. Thus the wealth of the sinner is laid up for the just; the spoil they brought out of Egypt, by borrowing of their neighbours, was much of it expended upon the tabernacle they had reared in the wilderness, for which they are now reimbursed with interest. The spoil here taken, it is probable, was all brought together, and distributed by Joshua in due proportions, as that of the Midianites was, Num. 31:26 It was not seized with irregularity or violence, for God is the God or order and equity, and not of confusion. 3. They laid the city in ashes, and left it to remain so, Josh. 8:28. Israel must yet dwell in tents, and therefore this city, as well as Jericho, must be burnt. And, though there was no curse entailed upon him that should rebuild it, yet, it seems, it was not rebuilt unless it be the same with Aijah, which we read of, long after, Neh. 11:31. Some think it was not rebuilt because Israel had received a defeat before it, the remembrance of which should be buried in the ruins of the city. 4. The king of Ai was taken prisoner and cut off, not by the sword of war as a soldier, but by the sword of justice as a malefactor. Joshua ordered him to be hanged, and his dead body thrown at the gate of his own city, under a heap of stone, Josh. 8:23, 29. Some particular reason, no doubt, there was for this severity against the king of Ai; it is likely he had been notoriously wicked and vile, and a blasphemer of the God of Israel, perhaps upon occasion of the repulse he had given to the forces of Israel in their first onset. Some observe that his dead body was thrown at the gate where he had been wont to sit in judgment that so much the greater contempt might thereby be poured upon the dignity he had been proud of, and he might be punished for the unrighteous decrees he had made in the very place where he had made them. Thus the Lord is known by the judgments which he executes.