Above all, brothers, do not swear oaths by heaven, by earth, or by any other object. Instead, let your "Yes" mean yes and your "No" mean no! Otherwise, you may fall under condemnation.
1 Kings 8:31
"If a man should sin against his neighbor and he is required to take an oath, and he then comes to take an oath in front of your altar in this Temple,
For people swear by someone greater than themselves, and an oath given as confirmation puts an end to all argument.
So Isaac named the well Shebah, which is why the city is named Beer-sheba to this day.
So Abraham instructed his servant, who was the oldest member of his household and in charge of everything he owned, "Make this solemn oath to me as a promise to the LORD, the God of heaven and earth, that you won't acquire a wife for my son from the Canaanite women among whom I'm living.
So the servant made a solemn oath to his master Abraham regarding this matter.
The one who despises those who are utterly wicked, but who honors the one who fears the LORD, who keeps his word even when it hurts and does not change,
the two of them are to take an oath in the LORD's presence that the accused has not taken his neighbor's property. Its owner is to accept this, and the neighbor is not to make restitution.
By myself I have sworn from my mouth has gone out integrity, a promise that won't be revoked: "To me every knee will bow, and every tongue will swear.'
I advise doing what the king says, especially regarding an oath to God.
Under pressure because of his promises and his assembled guests, the king ordered that it be done.