17 Then Daniel went home and told his friends Hananiah, Mishael, and Azariah about this matter.
18 He told them to ask the God of heaven to be merciful and to explain this secret to them so that they would not be destroyed with the rest of the wise advisers in Babylon.
19 The secret was revealed to Daniel in a vision during the night. So Daniel praised the God of heaven.
20 He said,“Praise God’s name from everlasting to everlastingbecause he is wise and powerful.
21 He changes times and periods of history.He removes kings and establishes them.He gives wisdom to those who are wiseand knowledge to those who have insight.
22 He reveals deeply hidden things.He knows what is in the dark,and light lives with him.
23 God of my ancestors, I thank and praise you.You gave me wisdom and power.You told me the answer to our question.You told us what the king wants to know.”