Joshua 9:9-19

9 They answered him, "We came from a country very far away because the LORD your God has become famous. We heard stories about him and everything he did in Egypt.
10 We also heard everything he did to the two kings of the Amorites east of the Jordan, King Sihon of Heshbon and King Og of Bashan in Ashtaroth.
11 Our leaders and everyone who lives in our country told us, 'Take what you need for the trip, and go meet them. Tell them, "We're at your mercy. Make a treaty with us right now."'
12 Our bread was warm when we left home to meet with you. Look at it now! It's dry and crumbling.
13 These were new wineskins when we filled them. Look at them now! See how they are splitting! Our clothes and sandals are also worn-out because we have come such a long way."
14 The men believed the evidence they were shown, but they did not ask the LORD about it.
15 So Joshua made peace with them by making a treaty which allowed them to live. The leaders of the congregation swore to it with an oath.
16 But three days after the treaty was made, the Israelites heard that these people were their neighbors and lived with them.
17 The Israelites broke camp. They came to the cities of Gibeon, Chephirah, Beeroth, and Kiriath Jearim two days later.
18 The Israelites didn't destroy these other people, because the leaders of the congregation had sworn an oath about them to the LORD God of Israel. The whole congregation complained about the leaders.
19 But all the leaders said to them, "We have sworn an oath about them to the LORD God of Israel, so we cannot touch them now.