Joshua captured all of these cities, killed all of their kings, and completely destroyed everything in these cities. He did this just as Moses, the servant of the Lord, had commanded.
Long ago the Lord had commanded his servant Moses to do this, and then Moses had commanded Joshua to do it. Joshua did everything the Lord had commanded Moses.