Immanuel Kant said this quote

Human beings are never to be treated as a means but always as ends.