Daniel 2:19

19 Then that same night the mystery was revealed to Daniel in a vision, and he 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 home and told his friends Hananiah, Mishael, and Azariah what had happened.
18 He told them to pray to the God of heaven for mercy and to ask him to explain the mystery to them so that they would not be killed along with the other advisers in Babylon.
19 Then that same night the mystery was revealed to Daniel in a vision, and he praised the God of heaven:
20 "God is wise and powerful! Praise him forever and ever.
21 He controls the times and the seasons; he makes and unmakes kings; it is he who gives wisdom and understanding.
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.