James 5:12

But above everything else, my brothers, do not take oaths, not "by the heaven," nor "by the earth," nor by any other oath. But your "yes" should be [simply] "yes," and your "no," [simply] "no," so you do not fall under condemnation.

Matthew 5:33-34

"Again, you have heard what was said to people in time's past [Lev. 19:12], 'You must not go back on your oaths, but [rather] fulfill the oaths you take to the Lord.'

Treasury of Scripture Knowledge

Summary

And ye shall not swear by my name falsely, neither shalt thou profane the name of thy God: I am the LORD.

Bible References

Ye shall

Matthew 5:33
"Again, you have heard what was said to people in time's past [Lev. 19:12], 'You must not go back on your oaths, but [rather] fulfill the oaths you take to the Lord.'
James 5:12
But above everything else, my brothers, do not take oaths, not "by the heaven," nor "by the earth," nor by any other oath. But your "yes" should be [simply] "yes," and your "no," [simply] "no," so you do not fall under condemnation.