Leviticus 5:4shava
'Or if a person swears thoughtlessly with his lips to do evil or to do good, in whatever matter a man may speak thoughtlessly with an oath, and it is hidden from him, and then he comes to know {it,} he will be guilty in one of these.
A careless oath brings guilt once the person realizes it.
Matthew 23:16omnumi
"Woe to you, blind guides, who say, 'Whoever swears by the temple, {that} is nothing; but whoever swears by the gold of the temple is obligated.'
Jesus condemns rules that make some oaths count less than others.