In the second year of the reign of Nebuchadnezzar, Nebuchadnezzar had dreams; his spirit was troubled, and his sleep left him. Then the king commanded that the magicians, the enchanters, the sorcerers, and the Chaldeans be summoned to tell the king his dreams. So they came in and stood before the king. And the king said to them, "I had a dream, and my spirit is troubled to know the dream." Then the Chaldeans said to the king in Aramaic, "O king, live forever! Tell your servants the dream, and we will show the interpretation." The king answered and said to the Chaldeans, "The word from me is firm: if you do not make known to me the dream and its interpretation, you shall be torn limb from limb, and your houses shall be laid in ruins. But if you show the dream and its interpretation, you shall receive from me gifts and rewards and great honor. Therefore show me the dream and its interpretation." They answered a second time and said, "Let the king tell his servants the dream, and we will show its interpretation." The king answered and said, "I know with certainty that you are trying to gain time, because you see that the word from me is firm— if you do not make the dream known to me, there is but one sentence for you. You have agreed to speak lying and corrupt words before me till the times change. Therefore tell me the dream, and I shall know that you can show me its interpretation." The Chaldeans answered the king and said, "There is not a man on earth who can meet the king's demand, for no great and powerful king has asked such a thing of any magician or enchanter or Chaldean. The thing that the king asks is difficult, and no one can show it to the king except the gods, whose dwelling is not with flesh."
Because of this the king was angry and very furious, and commanded that all the wise men of Babylon be destroyed. So the decree went out, and the wise men were about to be killed; and they sought Daniel and his companions, to kill them. Then Daniel replied with prudence and discretion to Arioch, the captain of the king's guard, who had gone out to kill the wise men of Babylon. He declared to Arioch, the king's captain, "Why is the decree of the king so urgent?" Then Arioch made the matter known to Daniel. And Daniel went in and requested the king to appoint him a time, that he might show the interpretation to the king.
Then Daniel went to his house and made the matter known to Hananiah, Mishael, and Azariah, his companions, and told them to seek mercy from the God of heaven concerning this mystery, so that Daniel and his companions might not be destroyed with the rest of the wise men of Babylon. Then the mystery was revealed to Daniel in a vision of the night. Then Daniel blessed the God of heaven. Daniel answered and said:
"Blessed be the name of God forever and ever,
to whom belong wisdom and might.
He changes times and seasons;
he removes kings and sets up kings;
he gives wisdom to the wise
and knowledge to those who have understanding;
he reveals deep and hidden things;
he knows what is in the darkness,
and the light dwells with him.
To you, O God of my fathers,
I give thanks and praise,
for 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 matter."
Therefore Daniel went in to Arioch, whom the king had appointed to destroy the wise men of Babylon. He went and said thus to him: "Do not destroy the wise men of Babylon; bring me in before the king, and I will show the king the interpretation."
Then Arioch brought in Daniel before the king in haste and said thus to him: "I have found among the exiles from Judah a man who will make known to the king the interpretation."