ʿAlī b. Ḥusayn – Allāh have mercy on him – would sometimes ride to Makkah and return without entering it (meeting anyone there), and he used to sit with Aslam the freedman of ʿUmar (himself a scholar), so it was said to him, “You leave Quraysh, and instead sit with the slave of Banī ʿAdī!” So he replied, “A man [should] sit where he benefits.”
Al-Dhahabī, Siyar Aʿlām Al-Nubalāʾ 4:388.
Do not sit with the foolish using your knowledge, and do not sit with the knowledgeable (scholars) using your foolishness.
Al-Dhahabī, Siyar Aʿlām Al-Nubalāʾ 5:154.
“Ibn Masʿūd used to say such-and-such [about this issue].” The man asked, “But tell me your opinion.” He replied, “Are you not all astonished by this man? I inform him of what Ibn Masʿūd [said] and he asks me my opinion. My religion is more important to me than that. By Allāh, I would rather sing a song than inform you of my opinion.”
Al-Dārimī, Al-Sunan ḥadīth 108.
The seeking of knowledge cannot truly be achieved except with four things: time (al-farāgh, being free to study), sufficient wealth (al-māl, to avoid preoccupation with seeking a living), preservation (al-ḥifẓ, memorization) and piety (al-waraʿ, religious cautiousness).
Al-Bayhaqī, Shuʿab Al-Īmān 3:243, article 1602.
You cannot be a scholar unless you have three traits: you do not transgress against those above you, you do not look down on those lesser than you, and you do not take any dunyā in return for your knowledge.
Al-Bayhaqī, Shuʿab Al-Īmān 3:282, article 1655.
The insightful and wise do not trust that they are safe from four things: a past sin about which it is not known what the Lord Almighty will do, the remaining lifespan wherein it is not known what destruction lies, some (apparent) advantage a person is given but which could be a lure (from Allāh) in recompense for his wrongdoing, a misguidance that has been beautified – so that he thinks it is guidance – and a momentary deviation of the heart, for a person can be stripped of his religion without realizing it.
Al-Dhahabī, Siyar Aʿlām Al-Nubalāʾ 8:406.
Beware of dispute and argumentation about the religion, and do not argue with a scholar nor an ignoramus. As for the scholar, he will withhold his knowledge from you, and will not be concerned with what you do. As for the ignorant person, he will only cause roughness in your heart and he will not obey you [anyway].
Al-Dārimī, Al-Sunan no. 302.
Whoever has not heard the differences of opinion, then do not consider him a scholar.
Ibn ʿAbd Al-Barr, Jāmiʿ Bayān Al-ʿIlm wa Faḍlihī no. 1521.
A man remains upon good as long as he knows what things spoil his deeds.
Aḥmad b. Ḥanbal, Al-Zuhd p339.
There are three things that I like for myself and for my brothers: That the Muslim man looks to the Qurān; he learns it, recites it, ponders it and refers to it. Second, that he looks to the narrations and the Sunnah; he asks about it and follows it with all his efforts. Third, that he leaves alone all these people except when doing good.
Al-Bukhāri, Al-Ṣaḥīḥ, no. 97 (in annotative, discontiguous form). The chain of transmission is connected in Al-Marwazī, Al-Sunnah, no. 108.