The purpose of life is all to God's glory. He is at work in all things. No event, great or small, is beyond God's purpose. However, it is not a passive purpose. God works in all things according to a purpose. That purpose is good for those who love God (Romans 8:28). The purpose of our lives is to the praise of God's glory.
We were created for a purpose. That purpose is to the glory of God. We have all sinned and fallen short of God's glory (Romans 3:23). Believers in Jesus Christ our Lord are saved from the condemnation of sin to the praise of God's glory (Ephesians 1:6, 12, 14).
The purpose of our salvation is to God's glory. God knew that we would sin. The mercy, grace, and love of God in Christ for sinners is to the praise of God's glory. Our salvation in Christ is to the glory of God's grace. Give God the glory for the grace that saved you in Christ. Our purpose in life through Christ is to the glory of God.
The purpose of worship is to God's glory. The word for glory in the Greek New Testament is doxa, from which we get our English word doxology. That word speaks of our worship as praise to God. We give God all the glory, as Father, Son and Holy Spirit. "Praise God from whom all blessings flow. Praise Him all creatures here below." He is worthy of our praise! We give God all the glory, now and forever more.