Narrated Abdullah bin Amr bin Al-Aas: I heard Allah’s Messenger, peace be upon him, as saying, “Allah does not take away the knowledge, by taking it away from the people. But [He] takes it away by the death of the religious learned men till when none of them remains.

Narrated Abu Moosa: The Prophet, peace be upon him, said, “The example of guidance and knowledge with which Allah has sent me is like abundant rain falling on the earth. Some of that [earth] was fertile soil that absorbed rainwater and brought forth vegetation and grass in abundance. (And) another portion of it was hard and held the rainwater and Allah benefited the people with it and they utilized it for drinking, and to irrigate the land for cultivation. (And) a portion of it was barren which could neither hold the water nor bring forth vegetation (then that land gave no benefits).

People will take as their leaders ignorant people who when consulted will give their verdict without knowledge. So they will go astray and will lead the people astray.”
[I: 100 O.B. Sahih Al-Bukhari]

The first is the example of the person who comprehends Allah’s Religion and gets benefit (from the knowledge) which Allah has revealed through me and learns and then teaches it to others. The (other) example is (that of a) person who does not care for it and does not take Allah’s Guidance revealed through me (He is like that barren land.)”
[I: 79 O.B. Sahih Al-Bukhari)