The Secret is Revealed to Daniel
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 power belong to Him.
21 “It is He who changes the times and the seasons;
He removes kings and establishes kings.
He gives wisdom to the wise
And [greater] knowledge to those who have understanding!
22 “It is He who reveals the profound and hidden 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, for You have given me wisdom and power;
Even now You have made known to me what we requested of You, for You have made known to us [the solution to] the king’s matter.”
24 So Daniel went to Arioch, whom the king had appointed to destroy the wise men of Babylon; he went and said this to him: “Do not execute the wise men of Babylon! Bring me before the king, and I will reveal to the king the interpretation [of his dream].”
25 Then Arioch hurriedly brought Daniel before the king and said this to him: “I have found a man among the exiles of Judah who can explain to the king the interpretation [of the dream].”
26 The king said to Daniel, whose [Babylonian] name was Belteshazzar, “Are you able to reveal to me the [content of the] dream which I have seen and its interpretation?”
27 Daniel answered the king and said, “Regarding the mystery about which the king has inquired, neither the wise men, enchanters, magicians, nor astrologers are able to answer the king,
28 but there is a God in heaven who reveals secrets, and He has shown King Nebuchadnezzar what will take place in the latter days (end of days). This was your dream and the vision [that appeared] in your mind while on your bed.
29 As for you, O king, as you were lying on your bed thoughts came into your mind about what will take place in the future; and He who reveals secrets has shown you what will occur.
30 But as for me, this secret has not been revealed to me because my wisdom is greater than that of any other living man, but in order to make the interpretation known to the king, and so that you may understand [fully] the thoughts of your mind.Daniel 2:19-30 (AMP)