Daniel 2:16-28 ESV
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.” The king declared to Daniel, whose name was Belteshazzar, “Are you able to make known to me the dream that I have seen and its interpretation?” Daniel answered the king and said, “No wise men, enchanters, magicians, or astrologers can show to the king the mystery that the king has asked, but there is a God in heaven who reveals mysteries, and he has made known to King Nebuchadnezzar what will be in the latter days. Your dream and the visions of your head as you lay in bed are these
ESV: English Standard Version 2016