David Hume said this quote

A man who has cured himself of all ridiculous prepossessions, and is fully, sincerely, and steadily convinced, from experience as well as philosophy, that the difference of fortune makes less difference in happiness than is vulgarly imagined; such a one does not measure out degrees of esteem according to the rent-rolls of his acquaintance. He may, indeed, externally pay a superior deference to the great lord above the vassal; because riches are the most convenient, being the most fixed and determinate, source of distinction. But his internal sentiments are more regulated by the personal characters of men, than by the accidental and capricious favours of fortune.