Joshua did to them as the LORD had told him; he hamstrung their horses and burned their chariots with fire.