17 Then Daniel returned to his house and explained the matter to his friends Hananiah, Mishael and Azariah. 18 He urged them to plead for mercy from the God of heaven concerning this mystery, so that he and his friends might not be executed with the rest of the wise men of Babylon. 19 During the night the mystery was revealed to Daniel in a vision. Then Daniel praised the God of heaven
20
and said:
"Praise be to the name of God for ever and ever;
wisdom and power are his.
21
He changes times and seasons;
he deposes kings and raises up others.
He gives wisdom to the wise
and knowledge to the discerning.
22
He reveals deep and hidden things;
he knows what lies in darkness,
and light dwells with him.
23
I thank and praise you, God of my ancestors:
You have given me wisdom and power,
you have made known to me what we asked of you,
you have made known to us the dream of the king."
24 Then Daniel went to Arioch, whom the king had appointed to execute the wise men of Babylon, and said to him, "Do not execute the wise men of Babylon. Take me to the king, and I will interpret his dream for him."
25 Arioch took Daniel to the king at once and said, "I have found a man among the exiles from Judah who can tell the king what his dream means." 26 The king asked Daniel (also called Belteshazzar), "Are you able to tell me what I saw in my dream and interpret it?" 27 Daniel replied, "No wise man, enchanter, magician or diviner can explain to the king the mystery he has asked about, 28 but there is a God in heaven who reveals mysteries. He has shown King Nebuchadnezzar what will happen in days to come. Your dream and the visions that passed through your mind as you were lying in bed are these: 29 "As Your Majesty was lying there, your mind turned to things to come, and the revealer of mysteries showed you what is going to happen. 30 As for me, this mystery has been revealed to me, not because I have greater wisdom than anyone else alive, but so that Your Majesty may know the interpretation and that you may understand what went through your mind.