That was a people that hath passed away. They shall reap the fruit of what they did, and ye of what ye do! Of their merits there is no question in your case:
تِلْکَ اُمَّتُنْ قَدْ خَلَتْ لَهَا مَا کَسَبَتْ وَلَکُمْ مَا کَسَبْتُمْ وَلَا تُسْءَلُونَ عَمَّا کَانُو یَعْمَلُونْ
(Those are a people) a group of people (who have passed away) perished; (theirs is that which they earned) of goodness (and yours is that which ye earn) of goodness. (And ye will not be asked) on the Day of Judgement (of what they used to do) in this world.