وَٱلَّذِينَ جَآءُو مِنۢ بَعْدِهِمْ يَقُولُونَ رَبَّنَا ٱغْفِرْ لَنَا وَلِإِخْوَٰنِنَا ٱلَّذِينَ سَبَقُونَا بِٱلْإِيمَـٰنِ وَلَا تَجْعَلْ فِى قُلُوبِنَا غِلًّۭا لِّلَّذِينَ ءَامَنُوا۟ رَبَّنَآ إِنَّكَ رَءُوفٌۭ رَّحِيمٌ
“And those who come after them will pray, "Our Lord! Forgive us and our fellow believers who preceded us in faith, and do not allow bitterness/resentment into our hearts towards those who believe. Our Lord! Indeed, You are Ever Gracious, Most Merciful."”
This ayah is part of Surah al-Hashr, which -- as this event's own significance note states -- was revealed about the expulsion of Banu Nadir (Ibn Abbas RA preferred to call it Surat Banu Nadir).