The Metaphysics of Morals by Immanuel Kant Chapter 2 Page 70

a means, without considering that as rational beings they ought always to be esteemed also as ends, that is, as beings who must be capable of containing in themselves the end of the very same action. *

* Let it not be thought that the common “quod tibi non vis fieri, etc.” could serve here as the rule or principle. For it is only a deduction from the former, though with several limitations; it cannot be a universal law, for it does not contain the principle of duties to oneself, nor of the duties of benevolence to others (for many a one would gladly consent that others should not benefit him, provided only that he might be excused from showing benevolence to them), nor finally that of duties of strict obligation to one another, for on this principle the criminal might argue against the judge who punishes him, and so on.