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:51:54

So leave them, ˹O Muhammad˺, for you are not to be blamed.  

So shun them, for you will not be reproached, because you have conveyed the Message to them.
القرآن:٥١:٥٤

فَتَوَلَّ عَنْهُمْ فَمَا أَنْتَ بِمَلُومٍ  

{فتولَّ} أعرض {عنهم فما أنت بملوم} لأنك بلغتهم الرسالة.