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 for ever and ever.
21 He controls the times and the seasons;he makes and unmakes kings;it is he who gives wisdom and understanding.
22 He reveals things that are deep and secret;he knows what is hidden in darkness,and he himself is surrounded by light.
23 I praise you and honour you, God of my ancestors.You have given me wisdom and strength;you have answered my prayerand shown us what to tell the king.”