where does it say in the bible not to swear?
They are part of the Sermon on the Mount. These verses are part of either the third or fourth antithesis, the discussion of oaths. Jesus tells his listeners in Matthew 5:34 "to swear not at all" and in here presents examples of unacceptable swearing.