Joshua 9:14-18 NLT
So the Israelites examined their food, but they did not consult the LORD. Then Joshua made a peace treaty with them and guaranteed their safety, and the leaders of the community ratified their agreement with a binding oath.
Three days after making the treaty, they learned that these people actually lived nearby! The Israelites set out at once to investigate and reached their towns in three days. The names of these towns were Gibeon, Kephirah, Beeroth, and Kiriath-jearim. But the Israelites did not attack the towns, for the Israelite leaders had made a vow to them in the name of the LORD, the God of Israel.
The people of Israel grumbled against their leaders because of the treaty.
NLT: New Living Translation