Joshua 9:7

9:7 The men of Israel said to the Hivites, “Perhaps you live near us. So how can we make a treaty with you?”

Joshua 9:15-16

9:15 Joshua made a peace treaty with them and agreed to let them live. The leaders of the community sealed it with an oath.

9:16 Three days after they made the treaty with them, the Israelites found out they were from the local area and lived nearby.