1. A robot may not injure a human being or, through inac­tion, allow a human being to come to harm.
  2. A robot must obey the orders giv­en it by human beings except where such orders would con­flict with the First Law.
  3. A robot must pro­tect its own exis­tence as long as such pro­tec­tion does not con­flict with the First or Sec­ond Laws.

— Isaac Asi­mov, Runaround, Hand­book of Robot­ics, 56th Edi­tion, 2058 A.D.

Asimov’s Three Laws of Robotics ?