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.
darimi:372Bishr b. Thābit al-Bazzār > Ḥassān b. Muslim > Yūnus b. ʿUbayd > al-Ḥasan

[Machine] "People have sought knowledge for the sake of Allah and not for what they can gain from it. He (the Prophet) said, 'Knowledge has remained with them until they sought it for the sake of Allah and not for what they can gain from it.'"  

الدارمي:٣٧٢أَخْبَرَنَا بِشْرُ بْنُ ثَابِتٍ الْبَزَّارُ حَدَّثَنَا حَسَّانُ بْنُ مُسْلِمٍ عَنْ يُونُسَ بْنِ عُبَيْدٍ عَنِ الْحَسَنِ قَالَ

«لَقَدْ طَلَبَ أَقْوَامٌ الْعِلْمَ مَا أَرَادُوا بِهِ اللَّهَ تَعَالَى وَلَا مَا عِنْدَهُ» قَالَ «فَمَا زَالَ بِهِمُ الْعِلْمُ حَتَّى أَرَادُوا بِهِ اللَّهَ وَمَا عِنْدَهُ»