Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran: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 Allah is you return all together; then He will inform you of what you used to do.  

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’; it is also said to mean others, on the basis of the ˹following˺ hadīth of Abū Tha‘laba al-Khushanī: ‘I asked the Messenger of God (s) about it ˹this verse˺ and he said, “Enjoin one other to decency and forbid one another indecency, and then if you see niggardliness being obeyed, whims being followed, this present world being preferred, and every intelligent person proud of his own opinions, then you are ˹still˺ responsible for ˹looking after˺ your own soul”,’ as reported by al-Hākim and others. Unto God you shall return, all together, and He will inform you of what you used to do, and requite you for it.
القرآن:٥:١٠٥

يَا أَيُّهَا الَّذِينَ آمَنُوا عَلَيْكُمْ أَنْفُسَكُمْ ۖ لَا يَضُرُّكُمْ مَنْ ضَلَّ إِذَا اهْتَدَيْتُمْ ۚ إِلَى اللَّهِ مَرْجِعُكُمْ جَمِيعًا فَيُنَبِّئُكُمْ بِمَا كُنْتُمْ تَعْمَلُونَ  

(يا أيها الذين آمنوا عليكم أنفسكم) أي احفظوها وقوموا بصلاحها (لا يضركم من ضل إذا اهتديتم) قيل المراد لا يضركم من ضل من أهل الكتاب وقيل المراد غيرهم لحديث أبي ثعلبة الخشني: سألت عنها رسول الله ﷺ فقال: "" إئتمروا بالمعروف وتناهوا عن المنكر حتى إذا رأيت شحا مطاعا ودنيا مؤثرة وإعجاب كل ذي رأي برأيه فعليك نفسك "" رواه الحاكم وغيره (إلى الله مرجعكم جميعا فينبئكم بما كنتم تعملون) فيجازيكم به.