Daniel went into training to become a court worker, and Nebuchadnezzar soon had dreams that his magicians, enchanters, sorcerers and astrologers could not interpret. Having heard the king was going to kill the failed "wise men", Daniel and his friends included, Daniel wisely and tactfully inquired of the sentence and went to ask the king for time to prepare the interpretation of the dream.
Daniel 2:17-18 - "Then Daniel went to his house, and showed the matter to Hananiah, Mishael, and Azariah his companions,
18 That they should beseech the God of heaven for grace in this secret, that Daniel and his fellows should not perish with the rest of the wise men of Babel."
In fact, Daniel asked the king's man, Arioch, to delay the deaths of all the "wise men"!
God answered their prayers and revealed the meaning of the dream to Nebuchadnezzar. Daniel "...answered and said, The Name of God be praised forever and ever: for wisdom and strength are his." C2v20
The outcome?
King Nebuchadnezzar fell prostrated before Daniel, placed Daniel in a "high position", in charge of all the "wise men" and ruler of the entire province of Babylon!! And Daniel's three companions were named administrators in Babylon as well on Daniel's request!
OH, to have friends in high places! Who is the "One on High"? Yes - God!