Scripture
Isaiah 48:1
Cited in the Confessions
Heidelberg Catechism
Q. 101 —
…ither when the magistrates demand it of the subjects; or when necessity requires us thereby to confirm a fidelity and truth to the glory of God, and the safety of our neighbour: for such an oath is founded on God's word,