Sayyiduna Salman al-Farsi (may Allah be pleased with him) said: Goodness will remain as long as the elders continue to teach others, and when the elders pass away before others have acquired knowledge from them, the people will be destroyed.
Brief Explanation
(Commentary on Hadith 254)
In this, there is encouragement to acquire knowledge and a warning of falling into destruction due to the departure of the scholars.