God does not like people to 'swear' oaths to him
Matthew 5:33–37
Again you have heard that it was said to those of old, ‘You shall not swear falsely, but shall perform to the Lord what you have sworn.’ But I say to you, Do not take an oath at all, either by heaven, for it is the throne of God, or by the earth, for it is his footstool, or by Jerusalem, for it is the city of the great King. And do not take an oath by your head, for you cannot make one hair white or black. Let what you say be simply ‘Yes’ or ‘No’; anything more than this comes from evil.
James 5:12
“Above all, my brothers,” — which is quite a statement — “do not swear, either by heaven or by earth or by any other oath. Let your yes be ‘yes’ and your no be ‘no,’ so that you may not fall under condemnation”