Nehemiah 9:29-31

29 and testified against them, that you might bring them again to your law. Yet they dealt proudly, and didn’t listen to your commandments, but sinned against your ordinances, (which if a man does, he shall live in them), turned their backs, stiffened their neck, and would not hear.

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

31 “Nevertheless in your manifold mercies you did not make a full end of them, nor forsake them; for you are a gracious and merciful God.