Samuel Butler said this quote

Self-preservation is the first law of nature.