Surah An-Nisa 4:123
لَّيْسَ بِأَمَانِيِّكُمْ وَلَآ أَمَانِىِّ أَهْلِ ٱلْكِتَـٰبِ ۗ مَن يَعْمَلْ سُوٓءًا يُجْزَ بِهِۦ وَلَا يَجِدْ لَهُۥ مِن دُونِ ٱللَّهِ وَلِيًّا وَلَا نَصِيرًا
It [i.e., Paradise] is not [obtained] by your wishful thinking nor by that of the People of the Scripture. Whoever does a wrong will be recompensed for it, and he will not find besides Allāh a protector or a helper.
Translation: Saheeh International
Tafsir
When the Muslims and the People of the Scripture began to pride themselves upon God’s promise the following was revealed It this matter is not dependent upon your desires nor the desires of the People of the Scripture but upon righteous deeds. …
Excerpt from Tafsir al-Jalalayn, commentary on 4:123, via Quran.com. The reader has the full commentary and 9 more tafsirs.