'Oath' in the Bible
The men said to her, “We will be free from this oath you made us swear,
And if you report our mission, we are free from the oath you made us swear.”
So Joshua established peace with them and made a treaty to let them live, and the leaders of the community swore an oath to them.
But the Israelites did not attack them, because the leaders of the community had sworn an oath to them by the Lord, the God of Israel. Then the whole community grumbled against the leaders.
All the leaders answered them, “We have sworn an oath to them by the Lord, the God of Israel, and now we cannot touch them.
This is how we will treat them: we will let them live, so that no wrath will fall on us because of the oath we swore to them.”
and so that you do not associate with these nations remaining among you. Do not call on the names of their gods or make an oath to them; do not worship them or bow down to them.