The man who esteems himself as he ought, and no more than he ought, seldom fails to obtain from other people all the esteem that he himself thinks due. He desires no more than is due to him, and he rests upon it with complete satisfaction.
 Adam Smith, The Theory of Moral Sentiments (1759). copy citation

Context

“But that instinct of pride, necessary to support them upon an equality with their brethren, seems totally wanting in the former and not in the latter.
That degree of self-estimation, therefore, which contributes most to the happiness and contentment of the person himself, seems likewise most agreeable to the impartial spectator. The man who esteems himself as he ought, and no more than he ought, seldom fails to obtain from other people all the esteem that he himself thinks due. He desires no more than is due to him, and he rests upon it with complete satisfaction. The proud and the vain man, on the contrary, are constantly dissatisfied. The one is tormented with indignation at the unjust superiority, as he thinks it, of other people. The other is in continual dread of the shame which, he foresees, would attend upon the detection of his groundless pretensions.” source