Daniel 2:14-23 NIV

14 When Arioch, the commander of the king's guard, had gone out to put to death the wise men of Babylon, Daniel spoke to him with wisdom and tact.
15 He asked the king's officer, "Why did the king issue such a harsh decree?" Arioch then explained the matter to Daniel.
16 At this, Daniel went in to the king and asked for time, so that he might interpret the dream for him.
17 Then Daniel returned to his house and explained the matter to his friends Hananiah, Mishael and Azariah.1

References for Daniel 2:17

18 He urged them to plead for mercy2 from the God of heaven3 concerning this mystery,4 so that he and his friends might not be executed with the rest of the wise men of Babylon.

References for Daniel 2:18

19 During the night the mystery5 was revealed to Daniel in a vision.6 Then Daniel praised the God of heaven7

References for Daniel 2:19

      20 and said: "Praise be to the name of God for ever and ever;8 wisdom and power9 are his.

      References for Daniel 2:20

      21 He changes times and seasons;10 he sets up kings11 and deposes12 them. He gives wisdom13 to the wise and knowledge to the discerning.14

      References for Daniel 2:21

      22 He reveals deep and hidden things;15 he knows what lies in darkness,16 and light17 dwells with him.

      References for Daniel 2:22

      23 I thank and praise you, O God of my fathers:18 You have given me wisdom19 and power, you have made known to me what we asked of you, you have made known to us the dream of the king.20"

      References for Daniel 2:23