183 Avot 2/16 & Horiyot 3/7-8

(טז) הוּא הָיָה אוֹמֵר, לֹא עָלֶיךָ הַמְּלָאכָה לִגְמֹר, וְלֹא אַתָּה בֶן חוֹרִין לִבָּטֵל מִמֶּנָּה. אִם לָמַדְתָּ תוֹרָה הַרְבֵּה, נוֹתְנִים לְךָ שָׂכָר הַרְבֵּה. וְנֶאֱמָן הוּא בַעַל מְלַאכְתְּךָ שֶׁיְּשַׁלֵּם לְךָ שְׂכַר פְּעֻלָּתֶךָ. וְדַע מַתַּן שְׂכָרָן שֶׁל צַדִּיקִים לֶעָתִיד לָבֹא:

(16) He used to say: It is not your responsibility to finish the work, but neither are you free to desist from it. If you have learned much Torah, your reward will be much; and the Master of your work is trustworthy to pay you the wage for your activity. And know, the giving of reward to the righteous is in the future to come.

(ז) הָאִישׁ קוֹדֵם לָאִשָּׁה לְהַחֲיוֹת וּלְהָשִׁיב אֲבֵדָה. וְהָאִשָּׁה קוֹדֶמֶת לָאִישׁ לִכְסוּת, וּלְהוֹצִיאָהּ מִבֵּית הַשֶּׁבִי. בִּזְמַן שֶׁשְּׁנֵיהֶם עוֹמְדִים לְקַלְקָלָה, הָאִישׁ קוֹדֵם לָאִשָּׁה:

(ח) כֹּהֵן קוֹדֵם לְלֵוִי, לֵוִי לְיִשְׂרָאֵל, יִשְׂרָאֵל לְמַמְזֵר, וּמַמְזֵר לְנָתִין, וְנָתִין לְגֵר, וְגֵר לְעֶבֶד מְשֻׁחְרָר. אֵימָתַי, בִּזְמַן שֶׁכֻּלָּן שָׁוִין. אֲבָל אִם הָיָה מַמְזֵר תַּלְמִיד חָכָם וְכֹהֵן גָּדוֹל עַם הָאָרֶץ, מַמְזֵר תַּלְמִיד חָכָם קוֹדֵם לְכֹהֵן גָּדוֹל עַם הָאָרֶץ:

(7) A man supersedes a woman to keep alive and to return a lost object. A woman supersedes a man to clothe and to free from captivity. If they both stand to be disgraced, the man supersedes the woman.

(8) A priest supersedes a Levite, a Levite supersedes an Israelite, an Israelite supersedes a product of a forbidden relation, a productof a forbidden relation supersedes a Natin [member of a caste of Temple servants, historically descended from the Gibeonites], a Natin supersedes a convert, and a convert supersedes a freed slave. When? When they are all equal. But if the product of a forbidden relation is a Sage and the high priest is an Am Ha'Aretz [one who is lax in observing tithes and purity laws], the product of a forbidden relation who is a sage supersedes the high priest who is am Am Ha'Aretz.