Then Daniel responded with tact and discretion to Arioch, the commander of the king's guard, who had gone out to execute the wise men of Babylon. He asked Arioch, the king's officer, "Why is the decree from the king so harsh?" Then Arioch explained the situation to Daniel.
Therefore Daniel went to Arioch, whom the king had assigned to destroy the wise men of Babylon. He came and said to him, "Don't kill the wise men of Babylon! Bring me before the king, and I will give him the interpretation." Then Arioch quickly brought Daniel before the king and said to him, "I have found a man among the Judean exiles who can let the king know the interpretation."
“We had dreams,” they said to him, “but there is no one to interpret them.”Then Joseph said to them, “Don’t interpretations belong to God? Tell me your dreams.”
“I am not able to,” Joseph answered Pharaoh. “It is God who will give Pharaoh a favorable answer.”
[urging] them to ask the God of heaven for mercy concerning this mystery, so Daniel and his friends would not be killed with the rest of Babylon's wise men. The mystery was then revealed to Daniel in a vision at night, and Daniel praised the God of heaven and declared: May the name of God be praised forever and ever, for wisdom and power belong to Him. read more.
He changes the times and seasons; He removes kings and establishes kings. He gives wisdom to the wise and knowledge to those who have understanding. He reveals the deep and hidden things; He knows what is in the darkness, and light dwells with Him. I offer thanks and praise to You, God of my fathers, because You have given me wisdom and power. And now You have let me know what we asked of You, for You have let us know the king's mystery. Therefore Daniel went to Arioch, whom the king had assigned to destroy the wise men of Babylon. He came and said to him, "Don't kill the wise men of Babylon! Bring me before the king, and I will give him the interpretation." Then Arioch quickly brought Daniel before the king and said to him, "I have found a man among the Judean exiles who can let the king know the interpretation." The king said in reply to Daniel, whose name was Belteshazzar, "Are you able to tell me the dream I had and its interpretation?" Daniel answered the king: "No wise man, medium, diviner-priest, or astrologer is able to make known to the king the mystery he asked about. But there is a God in heaven who reveals mysteries, and He has let King Nebuchadnezzar know what will happen in the last days. Your dream and the visions [that came into] your mind [as you lay] in bed were these: Your Majesty, while you were in your bed, thoughts came [to your mind] about what will happen in the future. The revealer of mysteries has let you know what will happen. As for me, this mystery has been revealed to me, not because I have more wisdom than anyone living, but in order that the interpretation might be made known to the king, and that you may understand the thoughts of your mind.