Leviticus 5:4

"Or if a person swears, speaking thoughtlessly with his lips to do evil or to do good, whatever it is that a man may pronounce by an oath, and he is unaware of it--when he realizes it, then he shall be guilty in any of these matters.

Surrounding context

5:3 Or if he touches human uncleanness--whatever uncleanness with which a man may be defiled, and he is unaware of it--when he realizes it, then he shall be guilty.

5:4 "Or if a person swears, speaking thoughtlessly with his lips to do evil or to do good, whatever it is that a man may pronounce by an oath, and he is unaware of it--when he realizes it, then he shall be guilty in any of these matters.

5:5 "And it shall be, when he is guilty in any of these matters, that he shall confess that he has sinned in that thing;

Translation and sources