عَنِ الْحَسَنِ مُرْسَلًا قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ جَاءَهُ الْمَوْتُ وَهُوَ يَطْلُبُ الْعِلْمَ لِيُحْيِيَ بِهِ الْإِسْلَامَ فَبَيْنَهُ وَبَيْنَ النَّبِيِّينَ دَرَجَةٌ وَاحِدَةٌ فِي الْجَنَّةِ» . رَوَاهُ الدَّارمِيّ
Translation

Ibn ‘Abbas reported God’s messenger as saying, “Some amongmy people will become learned in religion, will recite the Qur’an, andsay that they will go to princes and get some of their worldly goods,but withdraw from them with their religion. That cannot be; for, aswhat is gathered from tragacanth trees consists only of thorns, so whatis gathered from drawing near to them consists only of . . . ” Muhammadb. as-Sabbah said that he obviously meant “sins." Ibn Majah transmitted it.