This is a quote from the book "The ​Virtue Of Selfishness" by Ayn Rand
... both.

If man holds life on earth as the good, if he judges his values by the standard of that which is proper to the existence of a rational being, then there is no clash between
the requirements of survival and of morality — no clash between making himself able to live and making himself worthy of living; he achieves the second by achieving the first. But there is a c lash, if man holds the renunciation of this earth as the good, the renunciation of life, of mind, of happiness, of self. Under an anti-life morality, man makes himself worthy of living to the ex...
read full book block explorer