19 That night the secret was revealed to Daniel in a vision. Then Daniel praised the God of heaven. 20 He said, "Praise the name of God forever and ever, for he has all wisdom and power. 21 He controls the course of world events; he removes kings and sets up other kings. He gives wisdom to the wise and knowledge to the scholars. 22 He reveals deep and mysterious things and knows what lies hidden in darkness, though he is surrounded by light. 23 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."