Matthew 5:
Mat 26:
Yes, swearing before a judge is okay. A marriage vow is okay.
Jesus warned against careless, frivolous, or vain swearing. People in his time routinely abused swearing.33 “Again, you have heard that it was said to the people long ago, ‘Do not break your oath, but fulfill to the Lord the vows you have made.’ 34 But I tell you, do not swear an oath at all:
Note that Jesus did not say that do not swear by God.either by heaven, for it is God’s throne; 35 or by the earth, for it is his footstool; or by Jerusalem, for it is the city of the Great King. 36 And do not swear by your head, for you cannot make even one hair white or black.
For routine matters, no need to swear. Just be honest.37 All you need to say is simply ‘Yes’ or ‘No’; anything beyond this comes from the evil one.
Mat 26:
On this occasion, Jesus did not tell the high priest not to swear. He responded to the high priest swearing.63 But Jesus remained silent. And the high priest said to him, “I adjure you by the living God, tell us if you are the Christ, the Son of God.”
To convince the hearers of the speaker's seriousness, there are special occasions for true swearing. 2 Corinthians 1:64 Jesus said to him, “You have said so. But I tell you, from now on you will see the Son of Man seated at the right hand of Power and coming on the clouds of heaven.”
2 Corinthians 11:23 But I call on God as witness against me: it was to spare you that I did not come again to Corinth.
Galatians 1:31The God and Father of the Lord Jesus, who is to be praised forever, knows that I am not lying.
Can a Christian swear an oath?20 In what I am writing to you, before God, I do not lie!
Yes, swearing before a judge is okay. A marriage vow is okay.