So the LORD was with Joshua, and his fame spread throughout the land.
The people had religiously observed the orders given them concerning the besieging of Jericho, and now at length Joshua had told them (Jos 6:16), "The Lord hath given you the city, enter and take possession." Accordingly in these verses we have, I. The rules they were to observe in taking possession.
Commenting on Joshua 6:17-27
So the Lord was with Joshua,.... Counselling and directing him what to do, prospering and succeeding him in all that he engaged; the Targum is,"the Word of the Lord was for the help of Joshua;''the essential Word, Christ the Son of God, called the Captain of the Lord's host, Jos 5:14; and who, continued with him speaking to him and giving him orders, Jos 6:2...
THE REBUILDER OF JERICHO CURSED. (Jos 6:26-27) Joshua adjured them at that time--that is, imposed upon his countrymen a solemn oath, binding on themselves as well as their posterity, that they would never rebuild that city. Its destruction was designed by God to be a permanent memorial of His abhorrence of idolatry and its attendant vices. Cursed be the man . . .
Commenting on Joshua 6:26-27