So Joshua made a peace treaty with the messengers and promised that Israel would not kill their people. Israel's leaders swore that Israel would keep this promise.