Isma'il ibn 'Abu Uwais (may Allah be pleased with him) narrated from' Abdullah ibn 'Amr ibn' As (may Allah be pleased with him) that he said: I heard the Messenger of Allah (may peace be upon him) say that Allah will not take knowledge out of the heart of a servant; Rather, he will take away the knowledge by taking away the scholars. When there is no scholar left, the people will accept the ignorant as their leaders. They will be asked to issue fatwas without knowing it. As a result, they will lead themselves astray, and they will lead others astray.
Firabari (ra) said, Abbas (ra): There is a similar narration in Hisham Sutra.