Sunan Ibn Majah, Volume 1, Book 1, Hadith 255 (DarusSalam) ⓘ
It was narrated from Ibn 'Abbas that: 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'."
حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ، أَنْبَأَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، عَنْ يَحْيَى بْنِ عَبْدِ الرَّحْمَنِ الْكِنْدِيِّ، عَنْ عُبَيْدِ اللَّهِ بْنِ أَبِي بُرْدَةَ، عَنِ ابْنِ عَبَّاسٍ، عَنِ النَّبِيِّ ـ صلى الله عليه وسلم ـ قَالَ " إِنَّ أُنَاسًا مِنْ أُمَّتِي سَيَتَفَقَّهُونَ فِي الدِّينِ وَيَقْرَءُونَ الْقُرْآنَ وَيَقُولُونَ نَأْتِي الأُمَرَاءَ فَنُصِيبُ مِنْ دُنْيَاهُمْ وَنَعْتَزِلُهُمْ بِدِينِنَا . وَلاَ يَكُونُ ذَلِكَ كَمَا لاَ يُجْتَنَى مِنَ الْقَتَادِ إِلاَّ الشَّوْكُ كَذَلِكَ لاَ يُجْتَنَى مِنْ قُرْبِهِمْ إِلاَّ " . قَالَ مُحَمَّدُ بْنُ الصَّبَّاحِ كَأَنَّهُ يَعْنِي الْخَطَايَا .
also referenced under: Hadith 255 (Reference) & Book 1, Hadith 264 (In-Book)