For their sake he remembered his covenant and out of his great love he relented.
NIV
And He [earnestly] remembered for their sake His covenant and relented their sentence of evil [comforting and easing Himself] according to the abundance of His mercy and loving-kindness [when they cried out to Him].
AMP
And he remembered for them his covenant, and repented according to the multitude of his mercies.
KJV