Daniel 2:19

19 The mystery was then revealed to Daniel in a vision[a] at night, and Daniel praised the God of heaven

Daniel 2:19 Meaning and Commentary

Daniel 2:19

Then was the secret revealed unto Daniel in a night vision,
&c.] That is, after Daniel and his companions had importunately sought the Lord by prayer, the secret of the king's dream, and the interpretation of it, were made known to Daniel, and to him only; he being the person designed in Providence to be raised to great honour and dignity by means of it; this was done either the same night, or the night following, and, as some think, in a dream, and that he dreamed the same dream Nebuchadnezzar did, which he remembered, though the king forgot it; or, however, the same image was represented, to him, whether sleeping or waking, and the meaning of it given him: then Daniel blessed the God of heaven:
gave thanks to him, that he had heard his prayer, and indulged him in his request; which thanksgiving, blessing, or praise, is expressed in the following words:

Daniel 2:19 In-Context

17 Then Daniel went to his house and told his friends Hananiah, Mishael, and Azariah about the matter,
18 [urging] them to ask the God of heaven for mercy concerning this mystery, so Daniel and his friends would not be killed with the rest of Babylon's wise men.
19 The mystery was then revealed to Daniel in a vision at night, and Daniel praised the God of heaven
20 and declared: May the name of God be praised forever and ever, for wisdom and power belong to Him.
21 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.

Footnotes 1

Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.