تِلْكَ أُمَّةٌ قَدْ خَلَتْ لَهَا مَا كَسَبَتْ وَلَكُم مَّا كَسَبْتُمْ وَلاَ تُسْأَلُونَ عَمَّا كَانُوا يَعْمَلُونَ
﴿١٣٤﴾
سورة البقرة
(2/134) That was a nation (a community) that has passed away. They shall have what they earned and you shall have what you earn, and you shall not be questioned about their actions (you are not responsible for what they have done).
Surah Al-Baqarah