In Hoshen Mishpat siman 15, it has been explained that a talmid hacham who has a case with another and stands before the dayan, and there are others standing for judgment who preceded him, nevertheless, they prioritize the case of the talmid hacham and seat him. And even though the litigant must stand, nevertheless, the positive commandment of the honor of the Torah is superior. And it was explained there in siman 17, and there are in these matters several detailed laws and they were explained there. And it is a great sin to disparage a talmid hacham and to hate him. And anyone who disparages the sages – has no portion in the World to Come, and he is included in "for he has despised the word of Hashem" (Sanhedrin 99b). And Jerusalem was not destroyed until they disparaged the talmid hacham, as it is said: "And they mocked the messengers of G-d" (Shabbat 119b). And likewise, it is forbidden to employ any service from a talmid hacham, as we learned in the Mishnah in Avot: and he who makes use of the crown passes away. And our sages, of blessed memory, explained in Megillah (Megillah 28b): this is one who makes use of one who studies halachot, meaning: Mishnayot. And all the more so one who studies Gemara. And if there is a necessity for this, one should make use more of one who studies halachot than make use of one who studies Gemara. And it appears to me that if the talmid hacham needs this service, for his benefit or for his livelihood – it is permitted, for if not so, then harm would reach him on account of his Torah, and it is not proper. And just as it is forbidden to shame a talmid hacham, so too one must not shame the heads and appointees of the city (Shach Hoshen Mishpat end of siman 420). And likewise, all those who occupy themselves with mitzvot and with appointments for a mitzvah – their law is like talmidei hachamim regarding this matter, as we explained there in section 54, see there. And behold, it is forbidden to shame even any son of Israel, and all the more so these.
בחושן משפט סימן ט"ו נתבאר דתלמיד חכם שיש לו דין עם אחד ועומד לפני הדיין, ויש אחרים עומדים לדין שקדמו לפניו, מכל מקום מקדימין דינו של תלמיד חכם ומושיבין אותו. ואף על פי שהבעל דין צריך לעמוד, מכל מקום עשה דכבוד תורה עדיף. ונתבאר שם בסימן י"ז, ויש באלו הדברים כמה פרטי דינים ונתבארו שם. ועון גדול הוא לבזות תלמיד חכם ולשנאותו. וכל המבזה את החכמים – אין לו חלק לעולם הבא, והוא בכלל "כי דבר ה' בזה" (סנהדרין צט ב). ולא חרבה ירושלים עד שביזו תלמיד חכם, שנאמר: "ויהיו מלעיבים במלאכי אלקים" (שבת קיט ב). וכן אסור לשמש איזה שימוש בתלמיד חכם, כדתנן באבות: ודאשתמש בתגא חלף. ופירשו חכמינו ז"ל במגילה (מגילה כח ב): זה המשתמש במי ששונה הלכות, כלומר: משניות. וכל שכן במי ששונה גמרא. ואם יש הכרח לזה, ישתמש יותר במי ששונה הלכות משישתמש במי ששונה גמרא. ויראה לי דאם צריך התלמיד חכם שימוש זה, לטובתו או לפרנסתו – מותר, דאם לא כן הרי יגיע לו רעה בעד תורתו, ואינה מן המידה. וכמו שאסור לבייש תלמיד חכם, כמו כן אין לבייש ראשי וממוני העיר (ש"ך חושן משפט סוף סימן ת"כ). וכן כל העוסקים במצות ובהתמנות למצוה – דינם כתלמידי חכמים לעניין זה, כמו שבארנו שם סעיף נ"ד, עיין שם. והרי אפילו שום בר ישראל אסור לבייש, וכל שכן אלו.