Joshua 10:1

When Adonizedek, the king of Jerusalem, had heard these things, specifically, that Joshua had seized Ai, and had overthrown it, (for just as he had done to Jericho and its king, so did he do to Ai and its king,) and that the Gibeonites had fled over to Israel, and were now their confederates

Other versions

King James Version

Now it came to pass, when Adonizedek 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;

English Standard Version

As soon as Adoni-zedek, king of Jerusalem, heard how Joshua had captured Ai and had devoted it to destruction, doing to Ai and its king as he had done to Jericho and its king, and how the inhabitants of Gibeon had made peace with Israel and were among them,

New International Version

Now Adoni-Zedek king of Jerusalem heard that Joshua had taken Ai and totally destroyed it, doing to Ai and its king as he had done to Jericho and its king, and that the people of Gibeon had made a treaty of peace with Israel and were living near them.