Deuteronomy 24:16

16 Fathers are not to be put to death for their children or children for their fathers: every man is to be put to death for the sin which he himself has done.