Daniel 2:28

28 but there is a God in the heavens, a revealer of secrets, and He hath made known to king Nebuchadnezzar that which [is] to be in the latter end of the days. `Thy dream and the visions of thy head on thy bed are these:

Daniel 2:28 Meaning and Commentary

Daniel 2:28

But there is a God in heaven that revealeth secrets
By this Daniel meant to inform the king that there was but one God, in opposition to the notion of polytheism, that obtained among the Heathens; that this one God is in heaven, and presides over all persons and things on earth; and that to him alone belongs the revelation of secrets, and not to Heathen gods, or to any magician, astrologer; and of this kind was the king's dream, a secret impenetrable by men: and maketh known to the king Nebuchadnezzar what shall be in the latter
days:
in the latter days of his monarchy, which should be subverted, and succeeded by another; and in ages after that, during the Persian, Grecian, and Roman monarchies; and in the days of the Messiah, even in the latter of his days: thy dream, and the visions of thy head upon thy bed, are these;
which were of God, and of great importance; and, that the king might observe it, Daniel introduces these words with what goes before, and says what follows:

Daniel 2:28 In-Context

26 The king hath answered and said to Daniel, whose name [is] Belteshazzar, `Art thou able to cause me to know the dream that I have seen, and its interpretation?'
27 Daniel hath answered before the king and said, `The secret that the king is asking, the wise men, the enchanters, the scribes, the soothsayers, are not able to shew to the king;
28 but there is a God in the heavens, a revealer of secrets, and He hath made known to king Nebuchadnezzar that which [is] to be in the latter end of the days. `Thy dream and the visions of thy head on thy bed are these:
29 Thou, O king, thy thoughts on thy bed have come up [concerning] that which [is] to be after this, and the Revealer of secrets hath caused thee to know that which [is] to be.
30 As to me -- not for [any] wisdom that is in me above any living hath this secret been revealed to me; but for the intent that the interpretation to the king they make known, and the thoughts of thy heart thou dost know.
Young's Literal Translation is in the public domain.