וַיִּזְכֹּ֣ר לָהֶ֣ם בְּרִית֑וֹ וַ֝יִּנָּחֵ֗ם כְּרֹ֣ב חסדו [חֲסָדָֽיו׃]
И Он вспомнил для них Свой завет, И раскаялся по множеству Своих милостей.
Rashi
and He relented in accordance with His abundant kindness On account of the end, when He heard, “Save us, etc.” Moses, too, included them in one verse (Deut. 4:30): “In this distress that will befall you etc.”