“God created the world for His own praise. For His own glory. People see this as a problem — that God created the world for His own praise. They think such self-exaltation would be immoral and loveless. That may be how you feel.
But there is no conflict between your happiness and God’s glory,His glory shines in your happiness when your happiness is in Him. And since God is the source of greatest happiness, and since He is the greatest treasure in the world, and since His glory is the most satisfying gift He could possibly give us; it is the kindest, most loving thing He could possibly do — reveal Himself, magnify Himself and vindicate Himself for our everlasting enjoyment. “In your presence there is fullness of joy; at your right hand are pleasures forevermore” (Psalm 16:11)
God is the one being for whom self-exaltation is the most loving act, because He is exalting for us what alone can satisfy us fully and forever. If we exalt ourselves, we are not loving, because we distract people from the one Person who can make them happy forever, God. But if God exalts Himself, He draws attention to the one Person who can make us happy forever, Himself. He is not an egomaniac. He is an infinitely glorious, all-satisfying God, offering us everlasting and supreme joy in Himself.”
— John Piper [paraphrased]