וַיַּ֨עַשׂ לָהֶ֤ם יְהוֹשֻׁ֙עַ֙ שָׁל֔וֹם וַיִּכְרֹ֥ת לָהֶ֛ם בְּרִ֖ית לְחַיּוֹתָ֑ם וַיִּשָּׁבְע֣וּ לָהֶ֔ם נְשִׂיאֵ֖י הָעֵדָֽה׃
E Giosuè fece pace con loro e strinse con loro un'alleanza, per lasciarli in vita; e i capi dell'assemblea giurarono loro.
Rashi
Sworn to them [that they would let them live]. During the days of Yehoshua when he made woodcutters and water drawers for the Altar.8Yehoshua 9:27.