Daniel 11:35-36

11:35 Even some of the wise will stumble, resulting in their refinement, purification, and cleansing until the time of the end, for it is still for the appointed time.

11:36 “Then the king will do as he pleases. He will exalt and magnify himself above every deity and he will utter presumptuous things against the God of gods. He will succeed until the time of wrath is completed, for what has been decreed must occur.