Surah Al-Baqarah 2:141
تِلْكَ أُمَّةٌ قَدْ خَلَتْ ۖ لَهَا مَا كَسَبَتْ وَلَكُم مَّا كَسَبْتُمْ ۖ وَلَا تُسْـَٔلُونَ عَمَّا كَانُوا۟ يَعْمَلُونَ
That is a nation which has passed on. It will have [the consequence of] what it earned, and you will have what you have earned. And you will not be asked about what they used to do.
Translation: Saheeh International
Tafsir
That is a community that has passed away; theirs is what they have earned and yours is what you have earned; you shall not be asked about what they did a similar verse has already been mentioned above.
Excerpt from Tafsir al-Jalalayn, commentary on 2:141, via Quran.com. The reader has the full commentary and 9 more tafsirs.