a solemn pledge (to oneself or to another or to a deity) to do something or to behave in a certain manner
"they took vows of poverty"
is a type of (narrower)
a binding commitment to do or give or refrain from something
"an assurance of help when needed"; "signed a pledge never to reveal the secret"