Viktor E. Frankl said this quote

Thus far we have shown that the meaning of life always changes, but that it never ceases to be. According to logotherapy, we can discover this meaning in life in three different ways: (1) by creating a work or doing a deed; (2) by experiencing something or encountering someone; and (3) by the attitude we take toward unavoidable suffering.