smugness
Self-satisfied pleasure in being right or better off than others.
In a sentence
“A hint of smugness crept into his smile when his prediction came true.”
Change one detail
smugness
Your warning about the project turns out to be right. You lean back, certain that you always knew better.
Quieter than gloating, but it still looks down on others.
gloating
Your warning turns out to be right, and you remind everyone at each meeting that you predicted it.
A display of triumph turns quiet self-satisfaction into gloating.
Read the entry for gloating