Actually the king had dream, which is different from a vision .
Daniel 4
4 I Nebuchadnezzar was at rest in mine house, and flourishing in my palace:
5 I saw a dream which made me afraid, and the thoughts upon my bed and the visions of my head troubled me.
6 Therefore made I a decree to bring in all the wise men of Babylon before me, that they might make known unto me the interpretation of the dream.
Daniel 4
4 I Nebuchadnezzar was at rest in mine house, and flourishing in my palace:
5 I saw a dream which made me afraid, and the thoughts upon my bed and the visions of my head troubled me.
6 Therefore made I a decree to bring in all the wise men of Babylon before me, that they might make known unto me the interpretation of the dream.