Sunan al-Darimi 372
أَخْبَرَنَا بِشْرُ بْنُ ثَابِتٍ الْبَزَّارُ، حَدَّثَنَا حَسَّانُ بْنُ مُسْلِمٍ، عَنْ يُونُسَ بْنِ عُبَيْدٍ، عَنِ الْحَسَنِ قَالَ: «لَقَدْ طَلَبَ أَقْوَامٌ الْعِلْمَ مَا أَرَادُوا بِهِ اللَّهَ تَعَالَى، وَلَا مَا عِنْدَهُ» قَالَ: «فَمَا زَالَ بِهِمُ الْعِلْمُ حَتَّى أَرَادُوا بِهِ اللَّهَ وَمَا عِنْدَهُ»
Bishr ibn Thabit al-Bazzar informed us; he said: Hassan ibn Muslim narrated to us, from Yunus ibn ʿUbayd, from al-Hasan, who said: "People sought knowledge not intending by it Allah the Exalted nor what is with Him." He said: "But knowledge kept at them until they intended by it Allah and what is with Him."