When there are many cases before the judges, they shall prioritize the case that came before them first, meaning that the litigants stood before them first. Nevertheless, the case of a talmid chacham, whether he is the plaintiff or the defendant, takes precedence over others, even if the others stood before the talmid chacham. Moreover, even if they already began another case, if the talmid chacham himself comes to the beit din, they stop the other case and occupy themselves with the case of the talmid chacham because of the honor of his Torah and because of the neglect of his Torah study, for if he must wait, he will be neglected from his learning. And so too, they must turn over his merit with all their ability, meaning to be precise with his words and to examine them to see if a side of merit can be found in them [as is evident from Rashi, Shabbat 119a]. And if the talmid chacham himself did not come to the beit din, but rather sent an authorized representative, or if it is not the business of the talmid chacham at all but rather of his relative, only that the talmid chacham sent word to the beit din that they should judge the business of his relative, then if they began a case, they do not need to stop. But if they have not yet begun, even though the litigants are standing before them, they prioritize the case of the talmid chacham or his relative because of the honor of his Torah. However, a relative of a talmid chacham who comes to court and the talmid chacham did not send word to the beit din that they should judge his case, he has no law of precedence at all, for there is no mitzvah at all to honor the relative of a talmid chacham, except for his wife, who is considered like his own person. And also in this time, there is the law of a talmid chacham for all that has been explained [so it appears to me is the intention of our teacher, the Rema, and that which they questioned him is settled, and this is like the incident of Rav Anan, Ketubot 106a. And examine this carefully].
כשיש הרבה דינים לפני הדיינים יקדימו את הדין שקדם לפניהם והיינו שהבע"ד עמדו לפניהם תחלה ומ"מ דינו של ת"ח בין כשהוא תובע ובין כשהוא נתבע קודם לאחרים אפילו עמדו האחרים קודם להת"ח ולא עוד אלא אפילו התחילו כבר בדין אחר אם הת"ח בעצמו בא לב"ד מפסיקים מדין האחר ועוסקים בדינו של הת"ח מפני כבוד תורתו ומפני ביטול תורתו שאם יצטרך להמתין יתבטל מלימודו וכן צריכין להפך בזכותו בכל היכולת והיינו לדקדק בדבריו ולעיין בהם אם ימצאו בהם צד זכות [כ"מ מרש"י שבת קי"ט.] ואם הת"ח בעצמו לא בא לב"ד אלא ששלח מורשה או שאינו עסק של הת"ח כלל אלא של קרובו רק שהת"ח שלח לב"ד שידונו עסקו של קרובו אזי אם התחילו בדין א"צ להפסיק ואם לא התחילו עדיין אף שהבע"ד עומדים לפניהם מקדימין דינו של הת"ח או של קרובו מפני כבוד תורתו אבל קרובו של ת"ח שבא לדין והת"ח לא שלח להב"ד שידונו דינו אין לו דין קדימה כלל כי אין מצוה כלל לכבד קרובו של הת"ח לבד אשתו דכגופו דמיא וגם בזמה"ז יש דין ת"ח לכל מה שנתבאר [כנלע"ד כוונת רבינו הרמ"א וא"ש מה שהקשו עליו וזהו כמעשה דרב ענן כתובות ק"ו. ודו"ק]: