The following excerpt is taken from “Islamic Theory of Evolution” by T.O. Shanavas pg. 62:

The Prophet (peace be upon him) said:

“Seek knowledge; for its acquisition is fear of God, its pursuit is worship, its discussion is prayer, search for it is holy war, its propagation is charity, its teaching is fraternity. For it is the index of right and wrong; it is the lighthouse of the road to Paradise. It provides consolation in loneliness, friendship in estrangement, fidelity through thick and thin, a protective arm against enemies, rapprochement towards foreigners, decor among friends [and] through knowledge, God is obeyed and worshipped. In knowledge the good is revealed, loved and implemented, for it is the prius of action, the first principle of every good deed”2

2. Al-Faruqi, I.R. The Cultural Atlas of Islam, p. 313.

References:

Shanavas, T.O. (2005). Islamic Theory of Evolution: The Missing Link between Darwin and the Origin of Species. (p. 62)