Daniel 4:28-35 (ESV)
All this came upon King Nebuchadnezzar. At the end of twelve months he was walking on the roof of the royal palace of Babylon, and the king answered and said, "Is not this great Babylon, which I have built by my mighty power as a royal residence and for the glory of my majesty?" While the words were still in the king's mouth, there fell a voice from heaven, "O King Nebuchadnezzar, to you it is spoken: The kingdom has departed from you, and you shall be driven from among men, and your dwelling shall be with the beasts of the field. And you shall be made to eat grass like an ox, and seven periods of time shall pass over you, until you know that the Most High rules the kingdom of men and gives it to whom he will." Immediately the word was fulfilled against Nebuchadnezzar. He was driven from among men and ate grass like an ox, and his body was wet with the dew of heaven till his hair grew as long as eagles' feathers, and his nails were like birds' claws. At the end of the days I, Nebuchadnezzar, lifted my eyes to heaven, and my reason returned to me, and I blessed the Most High, and praised and honored him who lives forever, for his dominion is an everlasting dominion, and his kingdom endures from generation to generation; all the inhabitants of the earth are accounted as nothing, and he does according to his will among the host of heaven and among the inhabitants of the earth; and none can stay his hand or say to him, "What have you done?"