idiom
swear an oath
Meaning
to promise solemnly, often in a formal way
Example
He **swore an oath** to serve his country faithfully.