17 Then Daniel went to his house and made the thing known to Hananiah, Mishael, and Azariah, his companions, 18 So that they would desire and request mercy of the God of heaven concerning this secret, that Daniel and his companions should not perish with the rest of the wise men of Babylon. 19 Then the secret was revealed to Daniel in a vision of the night, and Daniel blessed the God of heaven.
20 Daniel answered, Blessed be the name of God forever and ever! For wisdom and might are His! 21 He changes the times and the seasons; He removes kings and sets up kings. He gives wisdom to the wise and knowledge to those who have understanding! 22 He reveals the deep and secret things; He knows what is in the darkness, and the light dwells with Him! 23 I thank You and praise You, O God of my fathers, Who has given me wisdom and might and has made known to me now what we desired of You, for You have made known to us the solution to the king's problem.
24 Therefore Daniel went 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 to the king the interpretation.
25 Then Arioch brought in Daniel before the king in haste and said thus to him: I have found a man of the captives of Judah who will make known to the king the interpretation [of his dream]. 26 The king said to Daniel, whose name was Belteshazzar, Are you able to make known to me the dream which I have seen and the interpretation of it? 27 Daniel answered the king, The [mysterious] secret which the king has demanded neither the wise men, enchanters, magicians, nor astrologers can show the king, 28 But there is a God in heaven Who reveals secrets, and He has made known to King Nebuchadnezzar what it is that shall be in the latter days (at the end of days). Your dream and the visions in your head upon your bed are these: 29 As for you, O king, as you were lying upon your bed thoughts came into your mind about what should come to pass hereafter, and He Who reveals secrets was making known to you what shall come to pass. 30 But as for me, this secret is not revealed to me for any wisdom that I have more than anyone else living, but in order that the interpretation may be made known to the king and that you may know the thoughts of your heart and mind.