Sunan al-Darimi 375
أَخْبَرَنَا مُحَمَّدُ بْنُ يُوسُفَ، عَنْ سُفْيَانَ قَالَ: كَانَ يُقَالُ: " الْعُلَمَاءُ ثَلَاثَةٌ: عَالِمٌ بِاللَّهِ يَخْشَى اللَّهَ لَيْسَ بِعَالِمٍ بِأَمْرِ اللَّهِ، وَعَالِمٌ بِاللَّهِ عَالِمٌ بِأَمْرِ اللَّهِ يَخْشَى اللَّهَ، فَذَاكَ الْعَالِمُ الْكَامِلُ، وَعَالِمٌ بِأَمْرِ اللَّهِ لَيْسَ بِعَالِمٍ بِاللَّهِ لَا يَخْشَى اللَّهَ، فَذَلِكَ الْعَالِمُ الْفَاجِرُ "
Muhammad ibn Yusuf informed us, from Sufyan, who said: It used to be said: "Scholars are three: one who knows Allah and fears Allah but does not know the command of Allah; one who knows Allah, knows the command of Allah and fears Allah, and that is the complete scholar; and one who knows the command of Allah but does not know Allah and does not fear Allah, and that is the wicked scholar."