Psalms 106:43-45

ISV(i) 43 He delivered them many times, but they demonstrated rebellion by their evil plans; therefore they sunk deep in their sins. 44 Yet when he saw their distress and heard their cries for help, 45 he remembered his covenant with them, and so relented according to the greatness of his gracious love.