It is narrated from Sayyiduna Ibn Amr (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: "Allah Almighty will not take away knowledge by snatching it from among the people, but He will take away knowledge by taking away the scholars. Until, when not a single scholar remains, people will take the ignorant as their leaders, and they will be asked questions and will issue verdicts without knowledge. As a result, they will go astray themselves and will lead others astray as well."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6787