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.
ibnmajah:255Muḥammad b. al-Ṣabbāḥ > al-Walīd b. Muslim > Yaḥyá b. ʿAbd al-Raḥman al-Kindī > ʿUbaydullāh b. Abū Burdah > Ibn ʿAbbās

The Prophet said: "There will be some people among my Ummah (nation) who will gain knowledge of the religion, and they will recite Qur'an, and will say: 'We come to the rulers so that we may have some share of their worldly wealth, and we will make sure that our religious commitment is not affected,' but that will not be the case. Just as nothing can be harvested from the Qatad except thorns, so nothing can be gained from being close to them except (sins).'" (Da'if)(One of the narrators) Muhammed bin As-Sabbah said: "It is as if he meant, 'except sins'."  

ابن ماجة:٢٥٥حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ أَنْبَأَنَا الْوَلِيدُ بْنُ مُسْلِمٍ عَنْ يَحْيَى بْنِ عَبْدِ الرَّحْمَنِ الْكِنْدِيِّ عَنْ عُبَيْدِ اللَّهِ بْنِ أَبِي بُرْدَةَ عَنِ ابْنِ عَبَّاسٍ

عَنِ النَّبِيِّ ﷺ قَالَ إِنَّ أُنَاسًا مِنْ أُمَّتِي سَيَتَفَقَّهُونَ فِي الدِّينِ وَيَقْرَءُونَ الْقُرْآنَ وَيَقُولُونَ نَأْتِي الأُمَرَاءَ فَنُصِيبُ مِنْ دُنْيَاهُمْ وَنَعْتَزِلُهُمْ بِدِينِنَا وَلاَ يَكُونُ ذَلِكَ كَمَا لاَ يُجْتَنَى مِنَ الْقَتَادِ إِلاَّ الشَّوْكُ كَذَلِكَ لاَ يُجْتَنَى مِنْ قُرْبِهِمْ إِلاَّ قَالَ مُحَمَّدُ بْنُ الصَّبَّاحِ كَأَنَّهُ يَعْنِي الْخَطَايَا  


See similar narrations below:

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

  

السيوطي:٦٣٠٠a

"إنَّ أُنَاسًا منْ أُمَّتِى سيَتَفَقَّهُونَ في الدِّين، ويقرءُون القرآنَ، وَيَقُولونَ: نَأتِى الأُمَراءَ فَنُصِيبُ مِنْ دُنَيَاهُم، وَنَعتَزِلُهُم بديننَا، وَلا يكونُ ذَلِكَ كَما لا يُجتَنَى مِنَ الْقَتادِ إِلَّا الشَّوكُ، كَذَلِكَ لا يُجتَنَى مِنْ قُرْبِهم إِلَّا الْخَطَايَا ".  

[هـ] ابن ماجة عن ابن عباس
suyuti:14962a
Request/Fix translation

  

السيوطي:١٤٩٦٢a

"سَيكُونُ قَوْمٌ بَعْدِى - مِن أُمَّتِى - يَقْرأُونَ الْقُرْآنَ، وَيتَفَقَّهُونَ فِي الدِّينِ، يَأْتِيهِمُ الشَّيْطَان فَيقُولُ: لَوْ أتَيْتُمُ السُّلْطَانَ فَأَصْلَح مِنْ دُنيَاكُم، واعْتَزَلْتُمُوهُمْ بِدينكُمْ؛ ولَا يكُونُ ذَلكَ كَما لاَ يُجْتَنى منَ الْقَتَادِ إِلَّا الشَّوْك، كذَلكَ لَا يُجْتنَى منْ قُرْبِهمْ إِلَّا الْخَطَايا".  

[كر] ابن عساكر في تاريخه عن ابن عباس