“Now suppose this man fathers a son who sees all the sins that his father has done; he sees, and does not do likewise:
In this third example Ezekiel announces, that if a man be born of a wicked father, he may nevertheless be pleasing to God, if he be unlike his father and thus he refutes the proverb that was so common in Israel — that the father ate the sour grapes, and the children’s teeth were set on edge.
God, by the prophet, having laid down the general rule of judgment, that he will render eternal life to those that patiently continue in well-doing, but indignation and wrath to those that do not obey the truth, but obey unrighteousness (Rom 2:7, Rom 2:8), comes, in these verses, to show that men's parentage and relation shall not alter the case either one way or other. I.
Commenting on Ezekiel 18:10-20
Now, lo, if he beget a son,.... That is, the wicked man before mentioned; if he begets a son who proves a good man, which sometimes is the case, as Hezekiah the son of Ahaz, and Josiah the son of Amon: that seeth all his father's sins which he hath done; not every particular action, but the principal of them; however, the several sorts and...