Un Cohein tiene prioridad sobre un Levita; un levita, a un israelita, [a saber. (Deuteronomio 10: 8): "En ese momento el Señor separó a la tribu de Leví, etc."]; un israelita a un mamzer, [el primero es "pedigrí", el segundo no]; un mamzer a un Nathin, [el primero que viene de una gota no contaminada; el segundo, de uno contaminado]; un Nathin a un prosélito, [el primero criado con nosotros en santidad; el segundo no]; un prosélito a un esclavo liberado, [el primero no ha sido subsumido en "maldito", el segundo ha sido subsumido así]. ¿Cuándo es esto así? Cuando todos son iguales (en eminencia); pero, entre un mamzer que es un erudito de la Torá y un sumo sacerdote que es un ignorante, un mamzer que es un erudito de la Torá tiene prioridad sobre un sumo sacerdote que es un ignorante, [como está escrito (Proverbios 3:15 ): "Es [la Torá] más preciosa que los peninim (gemas preciosas")— incluso (más precioso) que (el sumo sacerdote), que entra en lifnai velifnim, (acrónimo de "peninim"), "el santuario más interno"]
Mishneh Torah, Gifts to the Poor
If we have before us many poor people or many captives, and there is not enough in the fund to sustain them, or to clothe them, or to redeem them all, a priest takes precedence over a Levite, a Levite over a [regular] Jew, a Jew over a chalel [an illegitimate child of a priest], a chalel over a shetuki [an illegitimate child with an unknown father], a shetuki over a asufi [a foundling], an asufi over a mamzer [a child who was conceived in a union forbidden by the Torah], a mamzer over a natin [a descendent of the Gibeonites], and a natin over a stranger, so long as the natin was praised with us in holiness, and a convert takes precedence over a freed slave, for he [the slave] was once one of the cursed.161See Mishnah Horayot 3:8.
To what does this refer? When both who are imprisoned are equal in wisdom. But if there was a High Priest who was an ignoramus and a mamzer who was a wise disciple, the wise disciple takes precedence. Anyone who is great in wisdom takes precedence over another. But if one of them [the captives] was one's rabbi or father, even if there is someone who is greater in wisdom, one's rabbi or father [takes precedence]. Even if there is someone there [among the captives] who is greater in wisdom than his rabbi or his father, so long as he [his father or rabbi] is a wise disciple, he [the father or the rabbi] takes precedence over the one who is greater than them in wisdom.162See Mishnah Horayot 3:8 and Babylonian Talmud Horayot 13a.