Leviticus 5 4
If you foolishly swear to do something, (whether good or bad, and in whatever way people impulsively swear an oath), even if you're unaware of it being wrong, when you eventually realize it, you are guilty.
Compare with other 3 random translations
EAS Leviticus 5:4A person is doing a wrong thing if he says any careless promise. The promise might be good or bad. People will tell him that he has not obeyed God's rules. Then he will know that he has sinned.
AMP Leviticus 5:4Or if anyone unthinkingly swears he will do something, whether to do evil or good, whatever it may be that a man shall pronounce rashly taking an oath, then, when he becomes aware of it, he shall be guilty in either of these. [Mark 6:23.]
NLT Leviticus 5:4“Or suppose you make a foolish vow of any kind, whether its purpose is for good or for bad. When you realize its foolishness, you must admit your guilt.