Hermann Hesse said this quote

Youth ends when egotism does, maturity begins when one lives for others.