عَنِ ابْنِ عَبَّاسٍ قَالَ : قَالَ رَسُولُ اللَّهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ - : " مَنْ أَعَانَ ظَالِمًا بِبَاطِلٍ لِيَدْحَضَ بِهِ حَقًّا ، فَقَدْ بَرِئَ مِنْ ذِمَّةِ اللَّهِ وَذِمَّةِ رَسُولِهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ - " .
رَوَاهُ الطَّبَرَانِيُّ فِي الثَّلَاثَةِ ، وَفِي إِسْنَادِ الْكَبِيرِ : حَنَشٌ ، وَهُوَ مَتْرُوكٌ ، وَزَعَمَ أَبُو مِحْصَنٍ أَنَّهُ شَيْخُ صِدْقٍ ، وَفِي إِسْنَادِ الصَّغِيرِ وَالْأَوْسَطِ سَعِيدُ بْنُ رَحْمَةَ ، وَهُوَ ضَعِيفٌ .
Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: The Prophet (peace and blessings be upon him) said: "Whoever helps a wrongdoer in a falsehood in order to thereby push aside a truth has become free of the protection of Allah and the protection of His Messenger."
Al-Tabarani recorded it in all three of his books; the chain in al-Mu'jam al-Kabir contains Hanash, who is matruk (abandoned), while Abu Mihsan claimed that he was a truthful shaykh; the chain in al-Mu'jam al-Saghir and al-Mu'jam al-Awsat contains Sa'id bin Rahmah, who is da'if (weak).
وَعَنْ أَوْسِ بْنِ شُرَحْبِيلَ أَحَدِ بَنِي أَشْجَعَ أَنَّهُ سَمِعَ رَسُولَ اللَّهِ - صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ - يَقُولُ : " مَنْ مَشَى مَعَ ظَالِمٍ لِيُعِينَهُ ، وَهُوَ يَعْلَمُ أَنَّهُ ظَالِمٌ ، فَقَدْ خَرَجَ مِنَ الْإِسْلَامِ " .
رَوَاهُ الطَّبَرَانِيُّ فِي الْكَبِيرِ ، وَفِيهِ عَيَّاشُ بْنُ مُؤْنِسٍ ، وَلَمْ أَجِدْ مَنْ تَرْجَمَهُ ، وَبَقِيَّةُ رِجَالِهِ وُثِّقُوا ، وَفِي بَعْضِهِمْ كَلَامٌ .
Sayyiduna Aws bin Shurahbil (may Allah be pleased with him), who belonged to Banu Ashja', narrates that he heard the Prophet (peace and blessings be upon him) say: "Whoever walks along with a wrongdoer in order to help him, while knowing that he is a wrongdoer, has left Islam."
Al-Tabarani recorded it in al-Mu'jam al-Kabir; its chain contains Ayyash bin Mu'nis, and I have not found anyone who has written his biography; the rest of its narrators have been declared trustworthy, though some of them have been criticised.