It is reported that ‘Abdullāh b. Mas’ūd – Allāh be pleased with him – said:
The people will remain upon goodness as long as knowledge comes to them from the Companions of Allāh’s Messenger – Allāh’s praise and peace be upon him, and from their seniors. But when knowledge comes to them from their minors, that is when they will be destroyed.
Ibn ‘Abd Al-Barr, Jāmi’ Bayān Al-’Ilm wa Fadlihi article 1060.
Being upon a good and right path is based on following the knowledge of the Companions and seniors: scholars and people who adhere to the Sunnah, whereas taking knowledge from minors like ignorants and heretics is a sign of destruction.