Sahih Muslim Book 034, Hadith Number 6462.

Chapter : Knowledge would be taken away and ignorance would prevail upon people and the turmoil at the end of the world.

'Abdullah b. 'Amr b. al-'As reported Allah's Messenger (may peace be upon him) as saying: Verily, Allah does not take away knowledge by snatching it from the people but He takes away knowledge by taking away the scholars, so that when He leaves no learned person, people turn to ignorant as their, leaders; then they are asked to deliver religious verdicts and they deliver them without knowledge, they go astray, and lead others astray.