In the third year of the reign of Jehoiakim king of Judah, Nebuchadnezzar king of Babylonia came to Jerusalem and surrounded the city to cut off all supplies to it. The Lord gave Nebuchadnezzar victory over Jehoiakim king of Judah, and he gave him some of the sacred objects from the house of God. He brought them into the land of Babylonia, to the house of his god, and he placed the sacred objects in his god's treasury. The king spoke to Ashpenaz, his chief official, to bring in some of the people of Israel, both of the royal family and of the nobility— young men without blemish, attractive in appearance, skillful in all wisdom, filled with knowledge and understanding, and qualified to serve in the king's palace. He was to teach them the Babylonians' literature and language. The king counted out for them a daily portion of his delicacies and some of the wine that he drank. These young men were to be trained for three years, and after that, they would serve the king. Among these were Daniel, Hananiah, Mishael, and Azariah, some of the people of Judah. The chief official gave them names: Daniel he called Belteshazzar, Hananiah he called Shadrach, Mishael he called Meshach, and Azariah he called Abednego.
But Daniel intended in his mind that he would not pollute himself with the king's delicacies or with the wine that he drank. So he asked permission from the chief official that he might not pollute himself. Now God gave Daniel favor and compassion through the respect that the chief official had for him. 10 The chief official said to Daniel, “I am afraid of my master the king. He has commanded what food and drink you should have. Why should he see you looking worse than the other young men of your own age? The king might have my head because of you.” 11 Then Daniel spoke to the steward whom the chief official had assigned over Daniel, Hananiah, Mishael, and Azariah. 12 He said, “Please test us, your servants, for ten days. Give us only some vegetables to eat and water to drink. 13 Then compare our appearance with the appearance of the young men who eat the king's delicacies, and treat us, your servants, based on what you see.”
14 So the steward agreed with him to do this, and he tested them for ten days. 15 At the end of ten days their appearance was more healthy, and they were better nourished, than all the young men who ate the king's delicacies. 16 So the steward took away their delicacies and their wine and gave them only vegetables.
17 As for these four young men, God gave them knowledge and insight in all literature and wisdom, and Daniel could understand all kinds of visions and dreams. 18 At the end of the time set by the king to bring them in, the chief official brought them in before Nebuchadnezzar. 19 The king spoke with them, and among the whole group there were none to compare with Daniel, Hananiah, Mishael, and Azariah. They stood before the king, ready to serve him. 20 In every question of wisdom and understanding that the king asked them, he found them ten times better than all the magicians and those who claimed to speak with the dead, who were in his entire kingdom. 21 Daniel was there until the first year of King Cyrus.