You shall do to Ai and her king as you did to Jericho and her king: only the spoil of it, and the cattle of it, shall you take for a prey to yourselves: set you an ambush for the city behind it.
      I. The encouragement God gives to Joshua to proceed: Fear not, neither be thou dismayed,Joshua 8:1; Joshua 8:1. This intimates that the sin of Achan, and the consequences of it, had been a very great discouragement to Joshua, and made his heart almost ready to fail. Corruptions within the church weaken the hands, and damp the spirits, of her guides and helpers, more than oppositions from without; treacherous Israelites are to be dreaded more than malicious Canaanites. But God bids Joshua not be dismayed; the same power that keeps Israel from being ruined by their enemies shall keep them from ruining themselves. To animate him, 1. He assures him of success against Ai, tells him it is all his own; but he must take it as god's gift: I have given it into thy hands, which secured him both title and possession, and obliged him to give God the glory of both, Psalms 44:3. 2. He allows the people to take the spoil to themselves. Here the spoil was not consecrated to God as that of Jericho, and therefore there was no danger of the people's committing such a trespass as they had committed there. Observe, How Achan who caught at forbidden spoil lost that, and life, and all, but the rest of the people who had conscientiously refrained from the accursed thing were quickly recompensed for their obedience with the spoil of Ai. The way to have the comfort of what God allows us is to forbear what he forbids us. No man shall lose by his self-denial; let God have his dues first, and then all will be clean to us and sure, 1 Kings 17:13. God did not bring them to these goodly cities, and houses filled with all good things, to tantalize them with the sight of that which they might not touch; but, having received the first-fruits from Jericho, the spoil of Ai, and of all the cities which thenceforward came into their hands, they might take for a prey to themselves.