John Stuart Mill

That the morality of actions depends on the consequences which they tend to produce, is the doctrine of rational persons of all schools; that the good or evil of those consequences is measured solely by pleasure or pain, is all of the doctrine of the school of utility, which is peculiar to it.

John Stuart Mill, ‘Bentham’, Dissertations and Discussions, London, 1859