Knowledge will be lifted by the passing away of scholars leaving behind ignorant people who will mislead others
BUKHARI 100:
from ʿAbdullāh b. ʿAmr b. al-ʿĀṣ —
I heard the Messenger of Allah ﷺ say, "Allah does not take away knowledge by taking it away from the servants' ˹selves˺, rather he takes it away by the passage of the scholars until none of them remain. The people will take as their leaders ignorant persons who when consulted will give their verdict without knowledge. So they will go astray and will lead the people astray."
البخاري ١٠٠:
عن عبد الله بن عمرو بن العاص —
سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ: «إِنَّ اللَّهَ لاَ يَقْبِضُ الْعِلْمَ انْتِزَاعًا يَنْتَزِعُهُ مِنَ الْعِبَادِ، وَلَكِنْ يَقْبِضُ الْعِلْمَ بِقَبْضِ الْعُلَمَاءِ حَتَّى إِذَا لَمْ يُبْقِ عَالِمًا۔ اتَّخَذَ النَّاسُ رُءُوسًا جُهَّالاً فَسُئِلُوا فَأَفْتَوْا بِغَيْرِ عِلْمٍ فَضَلُّوا وَأَضَلُّوا۔»