So the king called the Gibeonites and spoke to them (now the Gibeonites were not of the sons of Israel but of the remnant of the Amorites, and the sons of Israel made a covenant with them, but Saul had sought to strike them down in his zeal for the sons of Israel and Judah).
Now it happened that when Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and had devoted it to destruction (just as he had done to Jericho and its king, so he had done to Ai and its king), and that the inhabitants of Gibeon had made peace with Israel and were within their land,
Now it happened at the end of three days after they had cut a covenant with them, that they heard that they were near them and that they were living nearly among them.