Nehemiah 9:26-28

26 In spite of this, they rebelled and disobeyed your laws. They killed your prophets, who warned them to turn back to you, and they cursed your name.

27 So you handed them over to their enemies, who treated them terribly. But in their sufferings, they begged you to help. From heaven you listened to their prayers and because of your great mercy, you sent leaders to rescue them.

28 But when they were at peace, they would turn against you, and you would hand them over to their enemies. Then they would beg for help, and because you are merciful, you rescued them over and over again.