That night the secret was revealed to Daniel in a vision. Then Daniel praised the God of heaven, saying, "Praise the name of God forever and ever, for he alone has all wisdom and power. He determines the course of world events; he removes kings and sets others on the throne. He gives wisdom to the wise and knowledge to the scholars. He reveals deep and mysterious things and knows what lies hidden in darkness, though he himself is surrounded by light. I thank and praise you, God of my ancestors, for you have given me wisdom and strength. You have told me what we asked of you and revealed to us what the king demanded."