Surah Al-Ma'idah 5:105
يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوا۟ عَلَيْكُمْ أَنفُسَكُمْ ۖ لَا يَضُرُّكُم مَّن ضَلَّ إِذَا ٱهْتَدَيْتُمْ ۚ إِلَى ٱللَّهِ مَرْجِعُكُمْ جَمِيعًا فَيُنَبِّئُكُم بِمَا كُنتُمْ تَعْمَلُونَ
O you who have believed, upon you is [responsibility for] yourselves. Those who have gone astray will not harm you when you have been guided. To Allāh is your return all together; then He will inform you of what you used to do.
Translation: Saheeh International
Tafsir
O you who believe you are responsible for your own souls in other words preserve them and do what is in their best interest; he who is astray cannot hurt you if you are rightly guided it is said that this means ‘None of those misguided ones from among the People of the Scripture can hurt you’; …
Excerpt from Tafsir al-Jalalayn, commentary on 5:105, via Quran.com. The reader has the full commentary and 9 more tafsirs.