Daniel 1:17-21 NIV
To these four young men God gave knowledge and understanding of all kinds of literature and learning. And Daniel could understand visions and dreams of all kinds.
At the end of the time set by the king to bring them into his service, the chief official presented them to Nebuchadnezzar. The king talked with them, and he found none equal to Daniel, Hananiah, Mishael and Azariah; so they entered the king’s service. In every matter of wisdom and understanding about which the king questioned them, he found them ten times better than all the magicians and enchanters in his whole kingdom.
And Daniel remained there until the first year of King Cyrus.
NIV: New International Version