Seems like mainstream folks tend to give credits of life wisdom to Buddhism and Stoicism but let’s not forget the Bible also mentioned the same in the book of Luke: “Whoever seeks to save his life will lose it, and whoever loses his life will preserve it.”
Luke 17:33 NKJV
https://bible.com/bible/114/luk.17.33.NKJV