This is a quote from the book "The ​Virtue Of Selfishness" by Ayn Rand
...pride is not — as the mystics preposterously imply it to be — a pretense at omniscience or infallibility. On the contrary, precisely because man must struggle for knowledge, precisely becaus e the pursuit of knowledge requires an effort, the men who assume this responsibility properly feel pride.

Sometimes, colloquially, pride is taken to mean a pretense at accomplishm
ents one has not in fact achieved. But the braggart, the boaster, the man who affects virtues he does not possess, is not proud; he has merely chosen the most humiliating way to reveal his humil...
read full book block explorer