Deut 6:13

6:13 by his name you shall swear. The third commandment does not forbid taking an oath on the name of God (cf. Judg. 8:19), but forbids a false oath. Because swearing by the name of a god implied the recognition and worship of that god, the Israelites were not to swear by other gods (cf. Jer. 5:7; Zeph. 1:5).