Full Sharh — Mishkat al-Masabih 247
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسلم قَالَ: " إِنَّ أُنَاسًا مِنْ أُمَّتِي سَيَتَفَقَّهُونَ فِي الدِّينِ ويقرءون الْقُرْآن يَقُولُونَ نَأْتِي الْأُمَرَاءَ فَنُصِيبُ مِنْ دُنْيَاهُمْ وَنَعْتَزِلُهُمْ بِدِينِنَا وَلَا يَكُونُ ذَلِكَ كَمَا لَا يُجْتَنَى مِنَ الْقَتَادِ إِلَّا الشَّوْكُ كَذَلِكَ لَا يُجْتَنَى مِنْ قُرْبِهِمْ إِلَّا - قَالَ مُحَمَّدُ بْنُ الصَّبَّاحِ: كَأَنَّهُ يَعْنِي - الْخَطَايَا ". رَوَاهُ ابْن مَاجَه
English Translation
Ibn ‘Abbas reported God’s messenger as saying, “Some among my people will become learned in religion, will recite the Qur’an, and say that they will go to princes and get some of their worldly goods, but withdraw from them with their religion. That cannot be; for, as what is gathered from tragacanth trees consists only of thorns, so what is gathered from drawing near to them consists only of . . . ” Muhammad b. as-Sabbah said that he obviously meant “sins." Ibn Majah transmitted it.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Knowledge
Hadith Number
247