They answered Joshua, and said, Because it was certainly told your servants, how that Yahweh your God commanded his servant Moses to give you all the land, and to destroy all the inhabitants of the land from before you; therefore we were sore afraid for our lives because of you, and have done this thing.
If God’s people make covenants with unbelievers, we may end up disobeying God, as Israel did (cf. 2 Corinthians 6:14-18). We need to seek the will of God before we make these commitments. We should look for it in prayer (James 1:5; James 4:2-3; James 4:15) and in Scripture (2 Timothy 3:16-17; cf. Numbers 27:21). We should also consult other godly people who understand God’s ways and can help us avoid overlooking important scriptural revelations that are pertinent (Proverbs 11:14). If we do make an unwise commitment, we should make the best of the situation, if breaking the covenant would be contrary to God’s will (e.g., marriage to an unbeliever, et al.).