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 had made a covenant with them, but Saul had sought to kill them in his zeal for the sons of Israel and Judah).
Now it came about when Adoni-zedek king of Jerusalem heard that Joshua had captured Ai, and had utterly destroyed it (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,
However, it came about at the end of three days after they had made a covenant with them, that they heard that they were neighbors and that they were living within their land.