“Men often act knowingly against their interest: For which reason the view of the greatest possible good does not always influence them.”
David Hume, A Treatise of Human Nature
David Hume wrote this in A Treatise of Human Nature.
Where it appears
The common error of metaphysicians has lain in ascribing the direction of the will entirely to one of these principles, and supposing the other to have no influence. Men often act knowingly against their interest: For which reason the view of the greatest possible good does not always influence them. Men often counteract a violent passion in prosecution of their interests and designs: It is not therefore the present uneasiness alone, which determines them. In general we may observe, that both these principles operate on the will; and where they are contrary, that either of them prevails, according to the general character or present disposition of the person.
From the public-domain edition, read it free.