There is no circumstance of conduct in any man, provided it have a beneficial tendency, that is not agreeable to my humanity, however remote the person; but every man, so far removed as neither to cross nor serve my avarice and ambition, is regarded as wholly indifferent by those passions.
 David Hume, An Enquiry Concerning the Principles of Morals (1751). copy citation

Context

“Whatever conduct gains my approbation, by touching my humanity, procures also the applause of all mankind, by affecting the same principle in them; but what serves my avarice or ambition pleases these passions in me alone, and affects not the avarice and ambition of the rest of mankind. There is no circumstance of conduct in any man, provided it have a beneficial tendency, that is not agreeable to my humanity, however remote the person; but every man, so far removed as neither to cross nor serve my avarice and ambition, is regarded as wholly indifferent by those passions. The distinction, therefore, between these species of sentiment being so great and evident, language must soon be moulded upon it, and must invent a peculiar set of terms, in order to express those universal sentiments of censure or approbation, which arise from humanity, or from views of general usefulness and its contrary.” source