The Prophet Mohammad peace upon him said: "Acquire knowledge. It enables its possessor to distinguish right from wrong; it lightens the way to Heaven; it is our friend in the desert, our society in solitude, our companion when friendless; it guides us to happiness; it sustains us in misery; it is an ornament among friends, and armour against enemies.
Other links:
The Purity and the Nobility of Knowledge
Value of knowledge
knowledge