Joshua 10:1

Now Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and devoted it to destruction—doing to Ai and its king as he had done to Jericho and its king—and that the people of Gibeon had made peace with Israel and were living near them.

Note Forms of the Hebrew cherem refer to the giving over of things or persons to the Lord, either by destroying them or by giving them as an offering; also in verses 28, 35, 37, 39, and 40.

BSB · Berean Standard Bible
Now it came to pass, when Adoni-zedek king of Jerusalem had heard how Joshua had taken Ai, and had utterly destroyed it; as he had done to Jericho and her king, so he had done to Ai and her king; and how the inhabitants of Gibeon had made peace with Israel, and were among them;
KJV · King James Version
Now when Adoni-Zedek king of Jerusalem heard how Joshua had taken Ai, and had utterly destroyed it; as he had done to Jericho and her king, so he had done to Ai and her king; and how the inhabitants of Gibeon had made peace with Israel, and were among them,
WEB · World English Bible
Now it came to pass, when Adoni-zedek king of Jerusalem heard how Joshua had taken Ai, and had utterly destroyed it (as he had done to Jericho and her king, so he had done to Ai and her king), and how the inhabitants of Gibeon had made peace with Israel, and were among them;
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

Adoni-zedec
Genesis 14:18; Hebrews 7:1
as he had
Joshua 6:21; Joshua 8:2, 22–29
how the
Joshua 9:15–27; Joshua 11:19, 20