Then Daniel, with wisdom and sound judgment, responded to Arioch the king's chief executioner, who had gone out to kill Babylon's sages.
He said to Arioch the king's royal officer, "Why is the king's command so unreasonable?" After Arioch explained the situation to Daniel,
Daniel went and asked the king to give him some time so he could explain the dream's meaning to him.
Then Daniel went to his house and explained the situation to his friends Hananiah, Mishael, and Azariah
so that they would ask the God of heaven for help about this mystery, in hopes that Daniel and his friends wouldn't die with the rest of Babylon's sages.
Then, in a vision by night, the mystery was revealed to Daniel! Daniel praised the God of heaven:
God's name be praised from age to eternal age! Wisdom and might are his!
God is the one who changes times and eras, who dethrones one king, only to establish another, who grants wisdom to the wise and knowledge to those with insight.
God is the one who uncovers what lies deeply hidden; he knows what hides in darkness; light lives with him!
I acknowledge and praise you, my fathers' God! You've given me wisdom and might, and now you've made known to me what we asked of you: you've made known to us the king's demand.