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.
tabarani:12473[Chain 1] Muḥammad b. al-Ḥusayn al-Anmāṭī > Bishr b. Maʿmar al-Qarqasāʾī > ʿAbd al-Raḥīm b. Zayd al-ʿAmmī from his father [Chain 2] Aḥmad b. Muḥammad b. Dāwud al-Sukkarī al-Jundīsābūrī

[Machine] The Messenger of Allah ﷺ said, "Whoever performs an action for the sake of Allah in congregation and succeeds, Allah will accept it from him. And if he makes a mistake, Allah will forgive him. But whoever performs an action seeking to cause division, and he succeeds, Allah will not accept it from him. And if he makes a mistake, he should take his place in Hellfire."  

الطبراني:١٢٤٧٣حَدَّثَنَا مُحَمَّدُ بْنُ الْحُسَيْنِ الْأَنْمَاطِيُّ ثنا بِشْرُ بْنُ مَعْمَرٍ الْقَرْقَسَائِيُّ ثنا عَبْدُ الرَّحِيمِ بْنِ زَيْدٍ الْعَمِّيُّ عَنْ أَبِيهِ ح وَحَدَّثَنَا أَحْمَدُ بْنُ مُحَمَّدِ بْنِ دَاوُدَ السُّكَّرِيُّ الْجُنْدِيسَابُورِيُّ ثنا مُحَمَّدُ بْنُ خُلَيْدٍ الْحَنَفِيُّ ثنا سَلْمُ بْنُ سَالِمٍ عَنْ نُوحِ بْنِ أَبِي مَرْيَمَ عَنْ زَيْدٍ الْعَمِّيِّ عَنْ سَعِيدِ بْنِ جُبَيْرٍ عَنِ ابْنِ عَبَّاسٍ قَالَ

قَالَ رَسُولُ اللهِ ﷺ «مَنْ عَمِلَ لِلَّهِ فِي الْجَمَاعَةِ فَأَصَابَ قَبِلَ اللهُ مِنْهُ وَإِنْ أَخْطَأَ غَفَرَ لَهُ وَمَنْ عَمِلَ يَبْتَغِي الْفُرْقَةَ فَأَصَابَ لَمْ يَتَقَبَّلِ اللهُ مِنْهُ وَإِنْ أَخْطَأَ فَلْيَتَبَوَّأْ مَقْعَدَهُ مِنَ النَّارِ»  


See similar narrations below:

Collected by Suyūṭī
suyuti:22333a
Request/Fix translation

  

السيوطي:٢٢٣٣٣a

"مَنْ عَمِلَ للهِ فِي الجَمَاعَةِ فَأَصَابَ قَبِلَ اللهُ -تَعَالى- مِنْهُ، وَإنْ أَخْطَأَ غَفَرَ لَهُ، وَمَنْ عَمِلَ عَمَلًا يَبْتَغِي بهِ الفُرْقَةَ فَأَصَابَ لَمْ يَتَقَبَّل اللهُ منْهُ، وَإِنْ أَخْطَأَ فَليَتَبَوَّأ مَقْعَدَهُ مِنَ النّارِ".  

[طب] الطبرانى في الكبير عن ابن عباس