So Daniel went in and asked the king to give him time, that he might tell the king the interpretation. 17 Then Daniel went to his house, and made the decision known to Hananiah, Mishael, and Azariah, his companions, 18 that they might seek mercies from the God of heaven concerning this secret, so that Daniel and his companions might not perish with the rest of the wise men of Babylon. 19 Then the secret was revealed to Daniel in a night vision. So Daniel blessed the God of heaven.
20 Daniel answered and said:
"Blessed be the Name of God forever and ever,
For wisdom and might are His.
21 And He changes the times and the seasons;
He removes kings and raises up kings;
He gives wisdom to the wise
And knowledge to those who have understanding.
22 He reveals deep and secret things;
He knows what is in the darkness,
And light dwells with Him.
23 "I thank You and praise You,
O God of my fathers;
You have given me wisdom and might,
And have now made known to me what we asked of You,
For You have made known to us the king's demand."