We sometimes say of a man, when we are talking of him in good-humour, that he is the better for his vanity, or that his vanity is more diverting than offensive
 Adam Smith, The Theory of Moral Sentiments (1759). copy citation

add
Author Adam Smith
Source The Theory of Moral Sentiments
Topic vanity good
Date 1759
Language English
Reference
Note
Weblink https://en.wikisource.org/wiki/The_Theory_of_Moral_Sentiments

Context

“the Spaniards, of pride; and foreign nations were disposed to consider the one as the more amiable; the other, as the more respectable people. The words vain and vanity are never taken in a good sense. We sometimes say of a man, when we are talking of him in good-humour, that he is the better for his vanity, or that his vanity is more diverting than offensive; but we still consider it as a foible and a ridicule in his character. The words proud and pride, on the contrary, are sometimes taken in a good sense. We frequently say of a man, that he is too proud, or that he has too much noble pride, ever to suffer himself to do a mean thing.” source