Because of this the king flew into a violent rage and commanded that all the wise men of Babylon be destroyed. The decree was issued, and the wise men were about to be executed; and they looked for Daniel and his companions, to execute them. Then Daniel responded with prudence and discretion to Arioch, the king's chief executioner, who had gone out to execute the wise men of Babylon; he asked Arioch, the royal official, "Why is the decree of the king so urgent?" Arioch then explained the matter to Daniel. So Daniel went in and requested that the king give him time and he would tell the king the interpretation. (NRSV 2:12-16)
For this cause the king was angry and very furious, and commanded to destroy all the wise men of Babylon. And the decree went forth that the wise men should be slain; and they sought Daniel and his fellows to be slain. Then Daniel answered with counsel and wisdom to Arioch the captain of the king's guard, which was gone forth to slay the wise men of Babylon: He answered and said to Arioch the king's captain, Why is the decree so hasty from the king? Then Arioch made the thing known to Daniel. Then Daniel went in, and desired of the king that he would give him time, and that he would shew the king the interpretation. (KJV 2:12-16)
This is the key moment where, after Nebuchadnezzar has ordered all the wise men killed (for not being able to magically know what his dream is without him telling them), Daniel starts to reverse the situation. This "All is Lost" moment quickly gives way to Daniel solving the problem and saving everybody. Props to him.
"He reveals deep and hidden things; he knows what is in the darkness, and light dwells with him. To you, O God of my ancestors, I give thanks and praise, for you have given me wisdom and power, and have now revealed to me what we asked of you, for you have revealed to us what the king ordered." Therefore Daniel went to Arioch, whom the king had appointed to destroy the wise men of Babylon, and said to him, "Do not destroy the wise men of Babylon; bring me in before the king, and I will give the king the interpretation." Then Arioch quickly brought Daniel before the king and said to him: "I have found among the exiles from Judah a man who can tell the king the interpretation." The king said to Daniel, whose name was Belteshazzar, "Are you able to tell me the dream that I have seen and its interpretation?" Daniel answered the king, "No wise men, enchanters, magicians, or diviners can show to the king the mystery that the king is asking." (NRSV 2:22-27)
"He revealeth the deep and secret things: he knoweth what is in the darkness, and the light dwelleth with him. I thank thee, and praise thee, O thou God of my fathers, who hast given me wisdom and might, and hast made known unto me now what we desired of thee: for thou hast now made known unto us the king's matter." Therefore Daniel went in unto Arioch, whom the king had ordained to destroy the wise men of Babylon: he went and said thus unto him; Destroy not the wise men of Babylon: bring me in before the king, and I will shew unto the king the interpretation. Then Arioch brought in Daniel before the king in haste, and said thus unto him, I have found a man of the captives of Judah, that will make known unto the king the interpretation. The king answered and said to Daniel, whose name was Belteshazzar, Art thou able to make known unto me the dream which I have seen, and the interpretation thereof? Daniel answered in the presence of the king, and said, "The secret which the king hath demanded cannot the wise men, the astrologers, the magicians, the soothsayers, shew unto the king." (KJV 2:22-27)
This is the moment where Dan actually goes in to tell Nebuchadnezzar the dream and reveals a major detail: the interpretation could never have come from a human being. Only God could provide the vision that would make everything clear.
Then the king gave the command, and Daniel was brought and thrown into the den of lions. The king said to Daniel, "May your God, whom you faithfully serve, deliver you!" A stone was brought and laid on the mouth of the den, and the king sealed it with his own signet and with the signet of his lords, so that nothing might be changed concerning Daniel. Then the king went to his palace and spent the night fasting; no food was brought to him, and sleep fled from him. (NRSV 6:16-18)
Then the king commanded, and they brought Daniel, and cast him into the den of lions. Now the king spake and said unto Daniel, Thy God whom thou servest continually, he will deliver thee. And a stone was brought, and laid upon the mouth of the den; and the king sealed it with his own signet, and with the signet of his lords; that the purpose might not be changed concerning Daniel. Then the king went to his palace, and passed the night fasting: neither were instruments of musick brought before him: and his sleep went from him. (KJV 6:16-18)
When Daniel is sealed up in the lions' den, Darius—trapped into executing Daniel by his wicked satraps—says that he hopes Daniel's God will save him. But Daniel faces up to his situation like a champ. While Darius isn't able to get to sleep, and fasts and stays up worrying, Daniel chills with some pretty docile lions.
Then one in human form touched my lips, and I opened my mouth to speak, and said to the one who stood before me, "My lord, because of the vision such pains have come upon me that I retain no strength. How can my lord's servant talk with my lord? For I am shaking, no strength remains in me, and no breath is left in me." Again one in human form touched me and strengthened me. He said, "Do not fear, greatly beloved, you are safe. Be strong and courageous!" When he spoke to me, I was strengthened and said, "Let my lord speak, for you have strengthened me." (NRSV 10:16-19)
And, behold, one like the similitude of the sons of men touched my lips: then I opened my mouth, and spake, and said unto him that stood before me, O my lord, by the vision my sorrows are turned upon me, and I have retained no strength. For how can the servant of this my lord talk with this my lord? for as for me, straightway there remained no strength in me, neither is there breath left in me. Then there came again and touched me one like the appearance of a man, and he strengthened me, And said, O man greatly beloved, fear not: peace be unto thee, be strong, yea, be strong. And when he had spoken unto me, I was strengthened, and said, Let my lord speak; for thou hast strengthened me. (KJV 10:16-19)
In this vision, Daniel meets with the angel Gabriel (again) and experiences a moment of holy terror, feeling all the strength ebb out of him. But Gabriel helps out, touching him and zapping him with renewed strength. Gabriel urges him to have courage too.
The wise among the people shall give understanding to many; for some days, however, they shall fall by sword and flame, and suffer captivity and plunder. When they fall victim, they shall receive a little help, and many shall join them insincerely. Some of the wise shall fall, so that they may be refined, purified, and cleansed, until the time of the end, for there is still an interval until the time appointed. (NRSV 11:33-35)
And they that understand among the people shall instruct many: yet they shall fall by the sword, and by flame, by captivity, and by spoil, many days. Now when they shall fall, they shall be holpen with a little help: but many shall cleave to them with flatteries. And some of them of understanding shall fall, to try them, and to purge, and to make them white, even to the time of the end: because it is yet for a time appointed. (KJV 11:33-35)
Here, the Book of Daniel isn't talking about the courage of Daniel or Shadrach, Meshach, and Abednego. It's moved from showing the courage of ideal heroes from the past to relating it to the courage that people are going to need to have in the book's present day.