יְהוָ֣ה אֱלֹהֵינוּ֮ אַתָּ֪ה עֲנִ֫יתָ֥ם אֵ֣ל נֹ֭שֵׂא הָיִ֣יתָ לָהֶ֑ם וְ֝נֹקֵ֗ם עַל־עֲלִילוֹתָֽם׃
O LORD our God, Thou didst answer them; A forgiving God wast Thou unto them, Though Thou tookest vengeance of their misdeeds.
Rashi on Psalms
but vengeful You were vengeful for their misdeeds: Moses and Aaron for “Hear now, you rebels!” As for Samuel, because he did not direct his sons in the good way, he died young.