An invention by Isaac Asimov. An idea about three laws for robots. A new law preceding the three first was later added. The four laws are (In my own words, the original text is copyrighted):

0) Not to harm the human collective (This law was added later on).
1) Not to harm a human.
2) To obey human order.
3) Not to harm itself.