Joshua 8:27 in the King James Version
Only the cattle and the spoil of that city Israel took for a prey unto themselves, according unto the word of the LORD which he commanded Joshua.
Context
26 For Joshua didn’t draw back his hand, with which he stretched out the javelin, until he had utterly destroyed all the inhabitants of Ai.
27 Israel took for themselves only the livestock and the goods of that city, according to the LORD’s word which he commanded Joshua.
28 So Joshua burned Ai and made it a heap forever, even a desolation, to this day.