Deuteronomy 23:22

Amplified Bible (AMP)
But if you refrain from making a vow, that would not be [counted as] sin in you.

Read Deuteronomy 23:22 in other translations