And those who believed and whose descendants followed them in faith - We will join with them their descendants, and We will not deprive them of anything of their deeds.1 Every person, for what he earned, is retained.2
Translation: Saheeh International (English)
1 i.e., the reward thereof.
2 i.e., subject or held responsible. Literally, "a hostage."
And those who brought faith and whose children followed them in faith - I will join their children with them so that they are pleased with them, even though they did not reach their actions. And I will not decrease anything from the reward of their actions. Every person will be held for the bad actions he earned; nobody else will bear any of his actions.