Daniel 2.19 reports the decisive turning point of the account:
“Then the mystery was revealed to Daniel in a vision during the night.”
Daniel could have gone immediately to the king.
The text nevertheless states:
“Daniel blessed the God of heaven” (Daniel 2.19).
This reaction is significant.
Daniel begins by turning to the one who communicated the revelation to him.
The prayer of Daniel 2.20-23 is therefore situated between two essential moments:
the reception of the mystery in Daniel 2.19;
its communication to the king from Daniel 2.24 on.
This position gives it an interpretive function. Before Nebuchadnezzar hears the explanation of his dream, the reader learns how Daniel himself understands theologically what has just happened.