pride oneself in

pride oneself in something

 and pride oneself on something
to take pride in one of one's qualities or accomplishments. She prides herself in her ability to spot a shoplifter. I pride myself on my ability to find compromises.
See also: pride