Talmud - Mas. Shabbath 10a

....Rabbi Ammi and Rabbi Assi were sitting and studying between the pillars; [footnote states: "Of the Beth Hamidrash."] every now and then they knocked at the side of the door and announced: If anyone has a lawsuit, let him enter and come. Rabbi Hisda and Rabbah son of Rabbi Huna were sitting all day [engaged] in judgments, and their hearts grew faint, [footnote states: "Rashi: they grieved at not being able to study. Or literally, because they had not eaten all day."] [whereat] Rabbi Hiyya ben Rab of Difti [footnote states: "A town probably to be identified with Dibtha, in the vicinity of Wasit on the Tigris; Obermeyer, p. 197."] recited to them, and the people stood about Moses from the morning into the evening; [footnote states: "Ex. XVIII, 13."] now, can you really think that Moses sat and judged all day? when was his learning done? But it is to teach you, Every judge who judges with complete fairness [footnote states: "Lit., 'who judges a true judgment according to its truth'. V. Sanh., Sonc. ed., p. 27, n. 8."] even for a single hour, the Writ gives him credit as though he had become a partner to the Holy One, blessed be He, in the creation. [footnote states: "Lit., 'work of the Beginning'."] [For] here it is written, 'and the people stood about Moses from the morning into the evening'; whilst elsewhere it is written, and there was morning, and there was evening, one day. [footnote states: "Gen. 1, 5. The deduction is based on the similarity of the phrases used in both cases.-Thus, according to Rashi's first reason for their faintness (v. n. 4) he comforted them with the assurance of great reward. According to the second, he told them that they were not bound to sit and judge all day."]