Daniel 2:17-30 CSB
Then Daniel went to his house and told his friends Hananiah, Mishael, and Azariah about the matter, urging them to ask the God of the heavens for mercy concerning this mystery, so Daniel and his friends would not be destroyed with the rest of Babylon’s wise men. The mystery was then revealed to Daniel in a vision at night, and Daniel praised the God of the heavens and declared:
May the name of God
be praised forever and ever,
for wisdom and power belong to him.
He changes the times and seasons;
he removes kings and establishes kings.
He gives wisdom to the wise
and knowledge to those
who have understanding.
He reveals the deep and hidden things;
he knows what is in the darkness,
and light dwells with him.
I offer thanks and praise to you,
God of my ancestors,
because you have given me
wisdom and power.
And now you have let me know
what we asked of you,
for you have let us know
the king’s mystery.
Therefore Daniel went to Arioch, whom the king had assigned to destroy the wise men of Babylon. He came and said to him, “Don’t destroy the wise men of Babylon! Bring me before the king, and I will give him the interpretation.”
Then Arioch quickly brought Daniel before the king and said to him, “I have found a man among the Judean exiles who can let the king know the interpretation.”
The king said in reply to Daniel, whose name was Belteshazzar, “Are you able to tell me the dream I had and its interpretation?”
Daniel answered the king, “No wise man, medium, magician, or diviner is able to make known to the king the mystery he asked about. But there is a God in heaven who reveals mysteries, and he has let King Nebuchadnezzar know what will happen in the last days. Your dream and the visions that came into your mind as you lay in bed were these: Your Majesty, while you were in your bed, thoughts came to your mind about what will happen in the future. The revealer of mysteries has let you know what will happen. As for me, this mystery has been revealed to me, not because I have more wisdom than anyone living, but in order that the interpretation might be made known to the king, and that you may understand the thoughts of your mind.
CSB: Christian Standard Bible