It is narrated from Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Surely Allah will not take away knowledge from the people by suddenly snatching it out of them (their hearts); rather, He will take away knowledge through the death of the scholars, until, when He leaves no scholar remaining, the people will take ignorant people as their leaders and guides. Then they will be asked (about religious matters) and will give rulings (fatwas) without knowledge; thus they will go astray themselves and lead others astray."
Hadith Referenceالمعجم الأوسط / باب الألف / 988
Hadith Takhrij«أخرجه البخاري فى «صحيحه» برقم: 100، 7307، (1/32) [دون رقم في الترقيم المختار]، ومسلم فى «صحيحه» برقم: 2673، وابن حبان فى «صحيحه» برقم: 4571، 6719، 6723، والنسائي فى «السنن الكبرى» برقم: 5877، 5876، والترمذي فى «جامعه» برقم: 2652، والدارمي فى «مسنده» برقم: 245، وابن ماجه فى «سننه» برقم: 52، والبيهقي فى «السنن الكبرى» برقم: 20411، وأحمد فى «مسنده» برقم: 6622، 6905، 6906، 7015، والطيالسي فى «مسنده» برقم: 2406، والحميدي فى «مسنده» برقم: 592، والبزار فى «مسنده» برقم: 2421، 2422، 2423، وعبد الرزاق فى «مصنفه» برقم: 20471، 20477، 20481، وابن أبي شيبة فى «مصنفه» برقم: 38745، والطحاوي فى «شرح مشكل الآثار» برقم: 307، 306، 309، 308، 312، 310، 314، 313، 315، والطبراني فى «الكبير» برقم: 14212، 14211، 14210، 14213، 14214، 14217، 14218، 14215، 14216، 14219، 14220، 14223، 14221، 14222، 14225، 14224، 14226، 14228، 14227، 14231، 14229، 14230، 14232، 14233، 14412، والطبراني فى «الأوسط» برقم: 55، 2301، 3222»