Is from Adam Smith's Theory of Moral Sentiments, Part VII, Section II, Chapter III, 'Of those Systems which make Virtue consist in Benevolence':
"Those actions which aimed at the happiness of a great community, as they demonstrated a more enlarged benevolence than those which aimed only at that of a smaller system, so were they, likewise, proportionally the more virtuous. The most virtuous of all affections, therefore, was that which embraced as its object the happiness of all intelligent beings. The least virtuous, on the contrary, of those to which the character of virtue could in any respect belong, was that which aimed no further than at the happiness of an individual, such as a son, a brother, a friend.
In directing all our actions to promote the greatest possible good, in submitting all inferior affections to the desire of the general happiness of mankind, in regarding one's self but as one of the many, whose prosperity was to be pursued no further than it was consistent with, or conducive to that of the whole, consisted the perfection of virtue."