Nehemiah 9:29-31

29 and testified against them, that thou might bring them again to thy law. Yet they dealt proudly, and did not hearken to thy commandments, but sinned against thine ordinances (which if a man does, he shall live in them), and withdrew the shoulder, and stiffened their neck, and would not hear.

30 Yet many years thou bore with them, and testified against them by thy Spirit through thy prophets. Yet they would not give ear. Therefore thou gave them into the hand of the peoples of the lands.

31 Nevertheless in thy manifold mercies thou did not make a full end of them, nor forsake them, for thou are a gracious and merciful God.