Simone De Beauvoir said this quote

One's life has value so long as one attributes value to the life of others, by means of love, friendship, and compassion