Scripture

Acts 23:12

Cited in the Confessions
Westminster Confession of Faith
Chapter 22 · Article 7 — No man may vow to do anything forbidden in the Word of God, or what would hinder any duty therein commanded, or which is not in his own power, and for the performance whereof he hath no promise or ability from God.
Westminster Larger Catechism
Q. 113 — vows,
Q. 135 — by resisting all thoughts and purposes,