What has been said may also discover to us the reason why men in this world prefer different things, and pursue happiness by contrary courses.
 John Locke, An Essay Concerning Human Understanding (1689). copy citation

Context

“Men may choose different things, and yet all choose right; supposing them only like a company of poor insects; whereof some are bees, delighted with flowers and their sweetness; others beetles, delighted with other kinds of viands, which having enjoyed for a season, they would cease to be, and exist no more for ever.
57. [not in early editions]
58. Why men choose what makes them miserable.
What has been said may also discover to us the reason why men in this world prefer different things, and pursue happiness by contrary courses. But yet, since men are always constant and in earnest in matters of happiness and misery, the question still remains, How men come often to prefer the worse to the better; and to choose that, which, by their own confession, has made them miserable?
source