Imaam Ibnul Qayyim (rahimahullaah) said:

Indeed the people only take their scholars and the righteous worshipers as examples to follow; so if the scholars are wicked and the worshipers are ignorant, then calamity will be widespread and trials will become great upon individuals and the general people.

——————————————————

[Source: مفتاح دار السعادة 1/160]