In Jewish law, a person who is intellectually equipped and a scholar but does not behave properly is considered a most despicable human being.
A person who is merely erudite is called, in the Talmud, "a book-carrying donkey," or "a basket full of books."
Carrying books rather than, say, straw, does not make a donkey less of a donkey.
–Rabbi Adin Steinsaltz
From “On Character Education” in On Being Free by Rabbi Adin Steinsaltz