ספר המדות, A Righteous Person / Part I A Righteous Person / Part I · מב
Sefer HaMiddot 2053
מב. הַמָּקוֹר שֶׁמִּמֶּנּוּ תִּשְׁאַב הַחָכְמָה דְּהַיְנוּ הָרַב, הִשְׁתַּדֵּל שֶׁיִּהְיֶה בָּרוּךְ וְכָשֵׁר, וְלֹא תַחֲלִיפֶנּוּ, לֹא תָמִיר אוֹתוֹ.
42. The source from which one draws wisdom -- that is, the Rabbi -- be sure that he is blessed and worthy, and do not replace him and do not exchange him.