Daniel 2:17-23New Revised Standard Version (NRSV)
God Reveals Nebuchadnezzar’s Dream
17 Then Daniel went to his home and informed his companions, Hananiah, Mishael, and Azariah, 18 and told them to seek mercy from the God of heaven concerning this mystery, so that Daniel and his companions with the rest of the wise men of Babylon might not perish. 19 Then the mystery was revealed to Daniel in a vision of the night, and Daniel blessed the God of heaven.
20 Daniel said:
“Blessed be the name of God from age to age,
for wisdom and power are his.
21 He changes times and seasons,
deposes kings and sets up kings;
he gives wisdom to the wise
and knowledge to those who have understanding.
22 He reveals deep and hidden things;
he knows what is in the darkness,
and light dwells with him.
23 To you, O God of my ancestors,
I give thanks and praise,
for you have given me wisdom and power,
and have now revealed to me what we asked of you,
for you have revealed to us what the king ordered.”