Daniel 4:25
That they shall drive thee from men, and thy dwelling shall be with the beasts of the field, and they shall make thee to eat grass as oxen, and they shall wet thee with the dew of heaven, and seven times shall pass over thee, till thou know that the most High ruleth in the kingdom of men, and giveth it to whomsoever he will.
The account of Belshazzar also comes to mind:
22 But you, Belshazzar, his son, have not humbled yourself, though you knew all this. 23 Instead, you have set yourself up against the Lord of heaven...
Read more: https://www.biblegateway.com/passage/?search=Daniel+5&version=NIV