That community passed away. What they earned belongs to them, and what you earn belongs to you: you will not be answerable for their deeds.
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!