The chief-of-staff gave them [Babylonian] names: To Daniel he gave the name Belteshazzar. To Hananiah he gave the name Shadrach. To Mishael he gave the name Meshach. And to Azariah he gave the name Abednego.
Daniel made up his mind not to harm himself by eating the king's rich food and drinking the king's wine. So he asked the chief-of-staff for permission not to harm himself in this way.
God made the chief-of-staff kind and compassionate toward Daniel.
The chief-of-staff told Daniel, "I'm afraid of my master, the king. The king determined what you should eat and drink. If he sees that you look worse than the other young men your age, he would have my head cut off."
The chief-of-staff put a supervisor in charge of Daniel, Hananiah, Mishael, and Azariah. Daniel said to the supervisor,
"Please test us for ten days. Give us only vegetables to eat and water to drink.
Then compare us to the young men who are eating the king's rich food. Decide how to treat us on the basis of how we look."
The supervisor listened to them about this matter and tested them for ten days.
After ten days they looked healthier and stronger than the young men who had been eating the king's rich food.
So the supervisor took away the king's rich food and wine and gave them vegetables.
God gave these four men knowledge, wisdom, and the ability to understand all kinds of literature. Daniel could also understand all kinds of visions and dreams.