Daniel 2:15-19 New King James Version (NKJV)
15 he answered and said to Arioch the king’s captain, “Why is the decree from the king so [a]urgent?” Then Arioch made the decision known to Daniel.
16 So Daniel went in and asked the king to give him time, that he might tell the king the interpretation. 17 Then Daniel went to his house, and made the decision known to Hananiah, Mishael, and Azariah, his companions, 18 that they might seek mercies from the God of heaven concerning this secret, so that Daniel and his companions might not perish with the rest of the wise men of Babylon. 19 Then the secret was revealed to Daniel in a night vision. So Daniel blessed the God of heaven.