Joshua made peace with them and made a covenant with them to let them live, and the leaders of the congregation swore an oath to them.