Al-Mawardi: the one vain about his knowledge usually has little of it
«وقلما تجد بالعلم معجبا وبما أدرك مفتخرا، إلا من كان فيه مقلا ومقصرا؛ لأنه قد يجهل قدره، ويحسب أنه نال بالدخول فيه أكثره.»
“Rarely will you find someone vain about knowledge and proud of what he has attained, except one who has little of it and falls short in it; for he may not know its true measure, and he reckons that by entering it he has gained most of it.”
Abu al-Hasan al-Mawardi (d. 450 AH), Adab al-Dunya wa al-Din (The Ethics of Worldly Life and Religion).
Al-Mawardi was a judge and jurist in Baghdad, and his book Adab al-Dunya wa al-Din is one of the best-known Arabic books on ethics. Here he observes that a person of little knowledge thinks he has mastered it because he cannot see its limits, while the deeply learned see how long the road is and so become humble. On the same page he relates that he almost became vain about a book he had written, then two Bedouins asked him about questions he could not answer.
مجلس