Psalm 99:8

Thou answeredst them, O Lord our God: thou wast a God that forgavest them, though thou tookest vengeance of their inventions.

Cross-reference

Psalm 106:29 recounts God sending a plague as punishment for sin — a direct example of the 'avenger of wrongdoings' in Psalm 99:8.

Exodus 32:34 explicitly states God will later visit their sin upon them, directly illustrating the 'avenger of wrongdoings' from Psalm 99:8.

Exodus 32:35 records the immediate plague as punishment for the golden calf, a direct instance of God avenging wrongdoing.

Numbers 14:20 Historical context

Numbers 14:20 records God forgiving Israel after Moses' intercession — a direct example of the forgiveness mentioned here.

Deuteronomy 9:19 Historical context

Deuteronomy 9:19 describes God listening to Moses' plea and sparing Israel — illustrating the answered prayer and forgiveness here.

Ecclesiastes 7:29 Related theme

Ecclesiastes 7:29 explains that humans, though made upright, devised evil — the reason God must both forgive and avenge wrongdoings.