Psalm 99:8

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

Thou answeredst them, O Lord our God,.... This is repeated to show the certainty of it, and to encourage the people of God, in all ages, to pray unto him:

thou wast a God that forgavest them; even Moses, Aaron, and Samuel; for, though they were great and good men, they did not live without sin, and stood in need of pardoning grace and mercy, which they had; or rather the people for whom they prayed: so the Targum,

"O God, thou wast forgiving thy people for them;''

that is, through their prayers; see Numbers 14:19,

though thou tookest vengeance of their inventions; their sins, which are the inventions of men, Ecclesiastes 7:29. Kimchi and others interpret this of the inventions, designs, and practices of Korah, Dathan, and Abiram, against Moses and Aaron, Numbers 16:32 but though God took vengeance on them, it does not appear that he forgave their iniquities; wherefore it is best to understand this either of the sins of Moses and Aaron themselves, which, though pardoned, God took vengeance of, and showed his displeasure at, by not suffering them to go into the land of Canaan, Numbers 20:10, or else of the sins of the Israelites, who murmured upon the report of the spies; and though they were pardoned at the intercession of Moses, yet so far vengeance was taken upon them, that none of them were suffered to enter the land of Canaan; but their carcasses fell in the wilderness, Numbers 14:19, and thus, though God forgives the iniquities of his people, for the sake of his Son, yet he takes vengeance of them on him, their surety; on whom they have been laid and borne, and who has not been spared in the least; but has bore the whole wrath and vengeance of God due to sin; and besides, though he pardons his people, yet he chastises them for their sins, and shows his fatherly displeasure at them.