Whatever contributes to the good of mankind, as it crosses the constant bent of his wishes and desires, must produce uneasiness and disapprobation
 David Hume, An Enquiry Concerning the Principles of Morals (1751). copy citation

Context

“A creature, absolutely malicious and spiteful, were there any such in nature, must be worse than indifferent to the images of vice and virtue. All his sentiments must be inverted, and directly opposite to those, which prevail in the human species. Whatever contributes to the good of mankind, as it crosses the constant bent of his wishes and desires, must produce uneasiness and disapprobation; and on the contrary, whatever is the source of disorder and misery in society, must, for the same reason, be regarded with pleasure and complacency. Timon, who probably from his affected spleen more than an inveterate malice, was denominated the manhater, embraced Alcibiades with great fondness.” source