Philip Zaleski said this quote

J.R.R. Tolkien told a questioning correspondent, life's purpose is to know, praise, and thank God.