A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.
Notes from Wikiquote
The Zeroth Law of Robotics | Later included among these laws as a more fundamental directive
A robot may not injure a human being, or, through inaction, allow a human being to come to harm.
A robot may not injure humanity, or, through inaction, allow humanity to come to harm.
Quote text and notes from Wikiquote: Isaac Asimov (page history), available under CC BY-SA 4.0. Source quality and labels are our own summary of what Wikiquote records.