כִּ֣י אִם־הוֹגָ֔ה וְרִחַ֖ם כְּרֹ֥ב חסדו [חֲסָדָֽיו׃]
祂雖然使人憂傷,卻必照祂豐盛的慈愛施行憐憫。
Shenei Luchot HaBerit
As a confirmation we need only look at Lamentations 3,31/32: כי אם הוגה ורחם. It should really have said וירחם, "He will pardon. "The plain meaning of the full verse is: "For the Lord does not reject forever, but first afflicts, then pardons (displays mercy) in His abundant kindness, for He does not willfully bring grief." The homiletical meaning is that the very הוגה is the cause of the רחמים.