זרעים
הלכות מתנות עניים
פרק ח

Halacha

הלכה א
הַצְדָקָה הֲרֵי הִיא בִּכְלַל הַנְּדָרִים. לְפִיכָךְ הָאוֹמֵר הֲרֵי עָלַי סֶלַע לִצְדָקָה אוֹ הֲרֵי סֶלַע זוֹ צְדָקָה חַיָּב לִתְּנָהּ לָעֲנִיִּים מִיָּד וְאִם אִחֵר עָבַר בְּ (דברים כג כב) "בַל תְּאַחֵר" שֶׁהֲרֵי בְּיָדוֹ לִתֵּן מִיָּד וַעֲנִיִּים מְצוּיִין הֵן. אֵין שָׁם עֲנִיִּים מַפְרִישׁ וּמַנִּיחַ עַד שֶׁיִּמְצָא עֲנִיִּים. וְאִם הִתְנָה שֶׁלֹּא יִתֵּן עַד שֶׁיִּמְצָא עָנִי אֵינוֹ צָרִיךְ לְהַפְרִישׁ. וְכֵן אִם הִתְנָה בְּשָׁעָה שֶׁנָּדַר בִּצְדָקָה אוֹ הִתְנַדֵּב אוֹתוֹ שֶׁיִּהְיוּ הַגַּבָּאִין רַשָּׁאִין לְשַׁנּוֹתָהּ וּלְצָרְפָהּ בְּזָהָב הֲרֵי אֵלּוּ מֻתָּרִין:
כסף משנה
1.
Charity is considered as a vow. Therefore one who says: "I pledge to give a sela to charity"1I.e., he accepts the obligation upon himself. This is referred to as a vow (Hilchot Nedarim 1:2). or "[I will give] this sela to charity,"2Designating the coin for that purpose. This is referred to as a donation (ibid.). he is obligated to give it [to charity] immediately.3For one is obligated to fulfill his pledges at the earliest possible date. If he delays, he transgresses the commandment against delaying [the observance of one's vow],4Deuteronomy 23:22 commands: "Do not delay in paying it" and Hilchot Ma'aseh HaKorbanot 14:13 considers the prohibition against delaying payment of one's vows as one of the 613 commandments. for he has the capacity to make the gift immediately and [generally,] there are poor people at hand.
If there are no poor people at hand, he should set aside [the donation] and put it away until he finds poor people.5He does not, however, have to seek out poor people to give it to them (Siftei Cohen 257:5). If he made a stipulation that he is not obligated to make the donation until he finds poor people, he does not have to separate it [until the poor are at hand]. Similarly, if he made a stipulation at the time he made his vow to charity or pledged his donation that the trustees of the charitable fund could exchange it for gold, they are permitted to do so.6Compare to Halachah 4.

הלכה ב
הַמַּתְפִּיס בִּצְדָקָה חַיָּב כִּשְׁאָר הַנְּדָרִים. כֵּיצַד. אָמַר הֲרֵי סֶלַע זוֹ כְּזוֹ הֲרֵי זוֹ צְדָקָה. הַמַּפְרִישׁ סֶלַע וְאָמַר הֲרֵי זוֹ צְדָקָה וְלָקַח סֶלַע שְׁנִיָּה וְאָמַר וְזוֹ הֲרֵי שְׁנִיָּה צְדָקָה. וְאַף עַל פִּי שֶׁלֹּא פֵּרֵשׁ:
כסף משנה
2.
When a person extends a vow made to charity, he is obligated as is the case with regard to other vows.7See Hilchot Nedarim 3:3-4.
What is implied? If he said: "This sela is like this one [given to charity], it is also charity. When a person sets aside a sela and says: "This is charity" and then takes another sela and says: "And this," the second is also charity even though he did not say so explicitly.8Although Nedarim 7a leaves this matter unresolved, the Rambam and other authorities rule stringently.

הלכה ג
הַנּוֹדֵר צְדָקָה וְלֹא יָדַע כַּמָּה נָדַר יִתֵּן עַד שֶׁיֹּאמַר לֹא לְכָךְ נִתְכַּוַּנְתִּי:
כסף משנה
3.
When a person takes a vow [to give charity], but does not remember how much he vowed to give, he should give until he says: "I did not intend [to give] this [much]."9I.e., we obligate him to give until he is certain that he gave an amount that surpassed his vow.

הלכה ד
אֶחָד הָאוֹמֵר סֶלַע זוֹ צְדָקָה אוֹ הָאוֹמֵר הֲרֵי עָלַי סֶלַע לִצְדָקָה וְהִפְרִישׁוֹ. אִם רָצָה לְשַׁנּוֹתוֹ בְּאַחֵר מֻתָּר. וְאִם מִשֶּׁהִגִּיעַ לְיַד הַגַּבַּאי אָסוּר לְשַׁנּוֹתוֹ. וְאִם רָצוּ הַגַּבָּאִים לְצָרֵף הַמָּעוֹת וְלַעֲשׂוֹתָן דִּינָרִין אֵינָן רַשָּׁאִין אֶלָּא אִם אֵין שָׁם עֲנִיִּים לְחַלֵּק מְצָרְפִין לַאֲחֵרִים. אֲבָל לֹא לְעַצְמָן:
כסף משנה
4.
[The following rules apply] both to a person who says: "This sela is charity" and one who says: "I pledge a sela for charity" and sets it aside. If he desires to exchange it with another [coin], he is permitted to do so.10Unlike a coin consecrated to the Temple treasury, there is no necessity for a formal process of exchange. The Tur and the Shulchan Aruch (Yoreh De'ah 259:1) mention a further leniency, stating that a person may lend out this money - either to himself or to others. See Halachah 5. Once it reaches the hand of the treasurer of the charity, it is forbidden to be exchanged. If the treasurer of the charity desires to exchange the common currency for dinarim,11I.e., taking petty change and exchanging it for larger coins. they are not permitted to do so.12Lest they be suspected of profiting on the exchange. If there are no poor among whom to distribute the funds, they should have others exchange the coins,13And thus that suspicion will not apply. but they should not do so themselves.

הלכה ה
הָיָה לַעֲנִיִּים הֲנָאָה בְּעִכּוּב הַמָּעוֹת בְּיַד הַגַּבַּאי כְּדֵי לַעֲשׂוֹת לַאֲחֵרִים לִתֵּן. הֲרֵי אוֹתוֹ הַגַּבַּאי מֻתָּר לִלְווֹת אוֹתָם הַמָּעוֹת שֶׁל עֲנִיִּים וּפוֹרֵעַ. שֶׁהַצְּדָקָה אֵינָהּ כְּהֶקְדֵּשׁ שֶׁאָסוּר לֵהָנוֹת בּוֹ:
כסף משנה
5.
If the poor would benefit from the delay of the money in the possession of the charity collector so that he could motivate others to give,14I.e., as long as they hold the money in their possession, they will continue trying to influence others to give. Once they give the money to the poor, we fear that they will cease their efforts. that charity collector may borrow the money and pay [when the funds are required]. For charity does not resemble funds dedicated to the Temple treasury from which it is forbidden to benefit.

הלכה ו
מִי שֶׁהִתְנַדֵּב מְנוֹרָה אוֹ נֵר לְבֵית הַכְּנֶסֶת אָסוּר לְשַׁנּוֹתָהּ. וְאִם לִדְבַר מִצְוָה מֻתָּר לְשַׁנּוֹתָהּ. אַף עַל פִּי שֶׁלֹּא נִשְׁתַּקַּע שֵׁם בְּעָלֶיהָ מֵעָלֶיהָ. אֶלָּא אוֹמְרִים זוֹ הַמְּנוֹרָה אוֹ נֵר שֶׁל פְּלוֹנִי. וְאִם נִשְׁתַּקַּע שֵׁם הַבְּעָלִים מֵעָלֶיהָ מֻתָּר לְשַׁנּוֹתָהּ אֲפִלּוּ לִדְבַר הָרְשׁוּת:
כסף משנה
6.
When a person donates a candelabra or a lamp to a synagogue, it is forbidden to exchange it.15I.e., to sell it and use the money for another charitable purpose. If it is for a sacramental purpose, it is permitted to exchange it, even though the name of the donor is still associated with it, e.g., it is said: "This is so-and-so's candelabra" or "...so-and-so's lamp."16The Radbaz states that, for that same purpose, if the name of the donor is engraved upon it, it may not be sold for a non-sacramental purpose. This ruling is quoted by the Rama (Yoreh De'ah 259:3). If the name of the donor is no longer associated with it, it may be exchanged17From the wording of the Shulchan Aruch (Yoreh De'ah 259:3), the Turei Zahav infers that the decision to exchange the article must be made by the community. It is not sufficient for the trustee of the synagogue to make it alone. even for matters that are not sacramental in nature.

הלכה ז
בַּמֶּה דְּבָרִים אֲמוּרִים בְּשֶׁהָיָה הַמִּתְנַדֵּב יִשְׂרָאֵל. אֲבָל אִם הָיָה עַכּוּ''ם אָסוּר לְשַׁנּוֹתָהּ אֲפִלּוּ לִדְבַר מִצְוָה עַד שֶׁיִּשְׁתַּקֵּעַ שֵׁם בְּעָלֶיהָ מֵעָלֶיהָ. שֶׁמָּא יֹאמַר הָעַכּוּ''ם הִקְדַּשְׁתִּי דָּבָר לְבֵית הַכְּנֶסֶת שֶׁל יְהוּדִים וּמְכָרוּהוּ לְעַצְמָן:
כסף משנה
7.
When does the above apply? When the donor was Jewish. If, however, he was a gentile, it is forbidden to exchange it even for matters that are sacramental in nature as long as the name of the donor is still associated with it.18If, however, the donor's name is no longer associated with it, it may be sold (Siftei Cohen 259:13). [We fear that] the gentile might say: "I consecrated an article to the Jews' synagogue and they sold it for their own purposes."19This would lead to the desecration of God's name (Turei Zahav 259:6).

הלכה ח
עַכּוּ''ם שֶׁהִתְנַדֵּב לְבֶדֶק הַבַּיִת אֵין מְקַבְּלִין מִמֶּנּוּ לְכַתְּחִלָּה. וְאִם לָקְחוּ מִמֶּנּוּ אֵין מַחְזִירִין לוֹ. הָיָה הַדָּבָר מְסֻיָּם כְּגוֹן קוֹרָה אוֹ אֶבֶן מַחְזִירִין לוֹ כְּדֵי שֶׁלֹּא יְהֵא לָהֶן דָּבָר מְסֻיָּם בַּמִּקְדָּשׁ שֶׁנֶּאֱמַר (עזרא ד ג) "לֹא לָכֶם וָלָנוּ" וְגוֹ'. אֲבָל לְבֵית הַכְּנֶסֶת מְקַבְּלִין מֵהֶן לְכַתְּחִלָּה. וְהוּא שֶׁיֹּאמַר כְּדַעַת יִשְׂרָאֵל הִפְרַשְׁתִּי. וְאִם לֹא אָמַר טָעוּן גְּנִיזָה שֶׁמָּא לִבּוֹ לַשָּׁמַיִם. וְאֵין מְקַבְּלִים מֵהֶם לְחוֹמַת יְרוּשָׁלַיִם וְלֹא לְאַמַּת הַמַּיִם שֶׁבָּהּ שֶׁנֶּאֱמַר (נחמיה ב כ) "וְלָכֶם אֵין חֵלֶק וְזִכָּרוֹן בִּירוּשָׁלָיִם":
כסף משנה
8.
When a gentile seeks to make a donation to the Temple treasury, initially, we do not accept it. If, however, it was taken from him, we do not return it to him. If it was a specific article, e.g., a beam or a stone, we return it to him so that there will not be a specific entity in the Temple associated with [a gentile], as [Ezra 4:3] states: "It is not for you,20These words were originally addressed to the heads of the gentile nations who offered to help the Jews who returned to Zion rebuild the Temple. Nevertheless, they apply with regard to all gentiles in every age. together with us to build a Temple for our God."21The verse continues: "Instead, we ourselves will build it." For a synagogue, by contrast, we may accept their [donations, even] initially, provided they say: "I am donating it according to the intent of the Jewish people." If he does not say so, it must be entombed, for perhaps his intent was to consecrate it unto God.22And thus it would be forbidden to benefit from it. We do not receive donations23I.e., specific entities like beams or stones. An entity that is not specific may be accepted, for there is no reason to be more stringent for the walls of Jerusalem than for the Temple itself (Radbaz). from them for the walls of Jerusalem or an aqueduct in [that city], as [Nechemiah 2:20] states: "And you do not have a portion or a remembrance in Jerusalem."24These words, spoken by Nechemiah to the gentile enemies of the Jews who returned to Zion, are taken beyond their literal context and applied to building the city at all times.

הלכה ט
אָסוּר לְיִשְׂרָאֵל לִטּל צְדָקָה מִן הָעַכּוּ''ם בְּפַרְהֶסְיָא. וְאִם אֵינוֹ יָכוֹל לִחְיוֹת בִּצְדָקָה שֶׁל יִשְׂרָאֵל וְאֵינוֹ יָכוֹל לִטְּלָהּ מִן הָעַכּוּ''ם בְּצִנְעָה הֲרֵי זֶה מֻתָּר. וּמֶלֶךְ אוֹ שַׂר מִן הָעַכּוּ''ם שֶׁשָּׁלַח מָמוֹן לְיִשְׂרָאֵל לִצְדָקָה אֵין מַחְזִירִין אוֹתוֹ לוֹ מִשּׁוּם שְׁלוֹם מַלְכוּת. אֶלָּא נוֹטְלִין מִמֶּנּוּ וְיִנָּתֵן לַעֲנִיֵּי עַכּוּ''ם בַּסֵּתֶר כְּדֵי שֶׁלֹּא יִשְׁמַע הַמֶּלֶךְ:
כסף משנה
9.
It is forbidden for a Jew to receive charity from a gentile25Based on Hilchot Melachim 10:10, we can assume that this is speaking about an idolater. If, however, a gentile accepts upon himself the observance of the Seven Universal Laws commanded to Noah and his descendants, we are permitted to accept charity from him. in public.26The impression that the Jews cannot take care of their own and must rely on the gentiles for charity degrades the honor of God's name (Turei Zahav 254:1). If, however, the gentiles' charity is given in private, there is no difficulty in accepting it. Indeed, a person who accepts charity from the gentiles in public is not acceptable as a witness (Hilchot Edut 11:5). If he is unable to subsist on the charity given by the Jews and it is impossible to receive charity from the gentiles in private, it is permitted.
When a gentile king or official sends money to the Jews for charity, we do not return it to him so as [not to jeopardize] peaceful relations with the king.27For it is highly likely that the king would take offense were he to hear that his charity was spurned. Instead, we take [the charity] from him and give it to the gentile poor in secret28We do not give it to the Jews, less this generate merit for the gentile king and allow his kingship to prosper (Bava Batra 10b). so that the king will not hear.29For diverting the charity from its intended purpose is also likely to arouse the king's rage.
The Shulchan Aruch (Yoreh De'ah 254:2) quotes the Rambam's ruling. The Rama states that the king's wishes should be heeded.

הלכה י
פִּדְיוֹן שְׁבוּיִים קוֹדֵם לְפַרְנָסַת עֲנִיִּים וְלִכְסוּתָן. וְאֵין לְךָ מִצְוָה גְּדוֹלָה כְּפִדְיוֹן שְׁבוּיִים שֶׁהַשָּׁבוּי הֲרֵי הוּא בִּכְלַל הָרְעֵבִים וְהַצְּמֵאִים וַעֲרוּמִּים וְעוֹמֵד בְּסַכָּנַת נְפָשׁוֹת. וְהַמַּעֲלִים עֵינָיו מִפִּדְיוֹנוֹ הֲרֵי זֶה עוֹבֵר עַל (דברים טו ז) "לֹא תְאַמֵּץ אֶת לְבָבְךָ וְלֹא תִקְפֹּץ אֶת יָדְךָ" וְעַל (ויקרא יט טז) "לֹא תַעֲמֹד עַל דַּם רֵעֶךָ" וְעַל (ויקרא כה נג) "לֹא יִרְדֶּנּוּ בְּפֶרֶךְ לְעֵינֶיךָ". וּבִטֵּל מִצְוַת (דברים טו ח) (דברים טו יא) "פָתֹחַ תִּפְתַּח אֶת יָדְךָ לוֹ". וּמִצְוַת (ויקרא כה לו) "וְחֵי אָחִיךָ עִמָּךְ". (ויקרא יט יח) "וְאָהַבְתָּ לְרֵעֲךָ כָּמוֹךָ". (משלי כד יא) "וְהַצֵּל לְקֻחִים לַמָּוֶת" וְהַרְבֵּה דְּבָרִים כָּאֵלּוּ. וְאֵין לְךָ מִצְוָה רַבָּה כְּפִדְיוֹן שְׁבוּיִים:
כסף משנה
10.
The redemption of captives receives priority over sustaining the poor and providing them with clothing. [Indeed,] there is no greater mitzvah than the redemption of captives.30For as the Rambam continues to explain, all of the different aspects of charitable gifts are included in the redemption of captives (Bava Batra 8b). For a captive is among those who are hungry, thirsty, and unclothed and he is in mortal peril.31For at any time, his captors may take his life. If someone pays no attention to his redemption, he violates the negative commandments: "Do not harden your heart or close your hand" (Deuteronomy 15:7 , "Do not stand by when the blood of your neighbor is in danger" (Leviticus 19:16 , and "He shall not oppress him with exhausting work in your presence" (ibid. 25:53). And he has negated the observance of the positive commandments: "You shall certainly open up your hand to him" (Deuteronomy 15:8 , "And your brother shall live with you" (ibid. 19:18), "Love your neighbor as yourself" (Leviticus 19:18 , "Save those who are taken for death" (Proverbs 24:11 , and many other decrees of this nature. There is no mitzvah as great as the redemption of captives.

הלכה יא
אַנְשֵׁי הָעִיר שֶׁגָּבוּ מָעוֹת לְבִנְיַן בֵּית הַכְּנֶסֶת וּבָא לָהֶן דְּבַר מִצְוָה מוֹצִיאִין בּוֹ הַמָּעוֹת. קָנוּ אֲבָנִים וְקוֹרוֹת לֹא יִמְכְּרוּם לִדְבַר מִצְוָה אֶלָּא לְפִדְיוֹן שְׁבוּיִים. אַף עַל פִּי שֶׁהֵבִיאוּ אֶת הָאֲבָנִים וּגְדָרוּם וְאֶת הַקּוֹרוֹת וּפְסָלוּם וְהִתְקִינוּ הַכּל לַבִּנְיָן מוֹכְרִין הַכּל לְפִדְיוֹן שְׁבוּיִים בִּלְבַד. אֲבָל אִם בָּנוּ וְגָמְרוּ לֹא יִמְכְּרוּ אֶת בֵּית הַכְּנֶסֶת אֶלָּא יִגְבּוּ לְפִדְיוֹנָן מִן הַצִּבּוּר:
כסף משנה
11.
When the inhabitants of a city collected money for building a synagogue and a purpose associated with a mitzvah arose, they may use the money for that purpose. If they purchased stones and beams, they should not sell them [and use the proceeds] for a purpose associated with a mitzvah other than the redemption of captives.32An exception is made in this instance, because the captives' lives are at risk. Even though they brought the stones [to the building site], cut the beams and shaped them to size, and prepared everything for building, it should all be sold, [but] only for the sake of redeeming captives. If they built [the synagogue] and completed it,33From the Rambam's wording, the Turei Zahav 252:21 infers that if the building is not complete, it may be sold. it should not be sold. Instead, the funds necessary to redeem the captives should be raised from the community.34The Siftei Cohen 252:1 states that if the community has no way of raising the funds through other means, it may sell the synagogue.

הלכה יב
אֵין פּוֹדִין אֶת הַשְּׁבוּיִים בְּיֶתֶר עַל דְּמֵיהֶן מִפְּנֵי תִּקּוּן הָעוֹלָם. שֶׁלֹּא יִהְיוּ הָאוֹיְבִים רוֹדְפִין אַחֲרֵיהֶם לִשְׁבּוֹתָם. וְאֵין מַבְרִיחִין אֶת הַשְּׁבוּיִים מִפְּנֵי תִּקּוּן הָעוֹלָם שֶׁלֹּא יִהְיוּ הָאוֹיְבִים מַכְבִּידִין עֲלֵיהֶן אֶת הָעל וּמַרְבִּים בִּשְׁמִירָתָן:
כסף משנה
12.
We do not redeem captives for more than their worth35I.e., they are evaluated like servants sold at a slave market (Meiri, Gittin 45a). for the benefit of the world at large, i.e., so that enemies will not pursue people to hold them captive.36Gittin, loc. cit. gives two reasons:
a) Were lawless men to know that they could receive exorbitant prices for the redemption of captives, they would be encouraged to kidnap them frequently.
b) this would be very taxing for the community.
The Rambam follows the latter view. Hence, even family members who would be willing to pay the extra expense are forbidden to do so (Radbaz). When quoting this law, the Shulchan Aruch (Yoreh De'ah 252:4) states that if the captive is a Torah scholar, an exception can be made and he may be redeemed for more than his worth.
We do not assist captives in escaping, for the benefit of the world at large, i.e., so that enemies will not oppress captives seriously and be very strict when guarding them.37I.e., if captives were wont to be helped to escape, kidnappers would become very strict and harsh when guarding other captives in the future.

הלכה יג
מִי שֶׁמָּכַר עַצְמוֹ וּבָנָיו לְעַכּוּ''ם אוֹ שֶׁלָּוָה מֵהֶן וְשָׁבוּ אוֹתָן אוֹ אֲסָרוּהוּ בְּהַלְוָאָתָן. פַּעַם רִאשׁוֹנָה וּשְׁנִיָּה מִצְוָה לִפְדּוֹתָן. שְׁלִישִׁית אֵין פּוֹדִין אוֹתָן. אֲבָל פּוֹדִין אֶת הַבָּנִים לְאַחַר מִיתַת אֲבִיהֶן. וְאִם בִּקְּשׁוּהוּ לְהָרְגוֹ פּוֹדִין אוֹתוֹ מִיָּדָם אֲפִלּוּ אַחַר כַּמָּה פְּעָמִים:
כסף משנה
13.
When a person sold himself and his children [as servants] to gentiles or borrowed money from them and they held him captive or imprisoned him [because of his failure to pay] the loan, it is a mitzvah to redeem him the first or second time [he is held]. [If this happens] a third time, we do not redeem him.38For it appears that the father has no compunctions against selling himself or his children and thus the situation will merely repeat itself. We do, however, redeem the sons after their father's passing.39Lest they become assimilated among the nations. During their fathers' lifetime, by contrast, we presume that he will educate them concerning their Jewish heritage even when they are held by the gentiles (Rashi, Gittin 47a). If they sought to kill him, we redeem him from their hands even if he [has been held captive] several times.40For we do not place any financial concerns above Jewish life.

הלכה יד
עֶבֶד שֶׁנִּשְׁבָּה הוֹאִיל וְטָבַל לְשֵׁם עַבְדוּת וְקִבֵּל עָלָיו מִצְוֹת פּוֹדִין אוֹתוֹ כְּיִשְׂרָאֵל שֶׁנִּשְׁבָּה. וְשָׁבוּי שֶׁהֵמִיר לְעַכּוּ''ם וַאֲפִלּוּ לְמִצְוָה אַחַת כְּגוֹן שֶׁהָיָה אוֹכֵל נְבֵלָה לְהַכְעִיס וְכַיּוֹצֵא בּוֹ אָסוּר לִפְדּוֹתוֹ:
כסף משנה
14.
When a servant is held captive, since he immersed himself [in the mikveh] and accepted the mitzvot,41See Hilchot Issurei Bi'ah 13:11, 14:9, which explain that these steps are necessary for a servant to attain the status of a servant of the Jewish people. he should be redeemed like a Jew who has been taken captive. When a captive abandons his faith even with regard to only one mitzvah, e.g., he eats meat from animals that were not ritually slaughtered with the intent of angering God42If, however, he transgresses because it is to his benefit to do so, he may be redeemed, but there is no obligation to redeem him [Rama (Yoreh De'ah 251:2)]. or the like, it is forbidden to redeem him.

הלכה טו
הָאִשָּׁה קוֹדֶמֶת לְאִישׁ לְהַאֲכִיל וְלִכְסוּת וּלְהוֹצִיא מִבֵּית הַשֶּׁבִי. מִפְּנֵי שֶׁהָאִישׁ דַּרְכּוֹ לְחַזֵּר לֹא הָאִשָּׁה וּבָשְׁתָּהּ מְרֻבָּה. וְאִם הָיוּ שְׁנֵיהֶם בַּשִּׁבְיָה וְנִתְבְּעוּ שְׁנֵיהֶן לִדְבַר עֲבֵרָה הָאִישׁ קוֹדֵם לִפְדּוֹת לְפִי שֶׁאֵין דַּרְכּוֹ לְכָךְ:
כסף משנה
15.
A woman receives precedence over a man with regard to being given sustenance, clothing, and to be redeemed from captivity.43There is another reason to give a woman precedence with regard to the redemption from captivity: We fear that the woman may be raped. [The rationale is that] it is common for a man to beg, but not for a woman and this is extremely embarrassing for her. If they were both held in captivity and they were both solicited for a transgression,44The Rambam is using a euphemism for sexual relations. the man should be redeemed first, because this is not ordinary for him.45I.e., sodomic rape is against a man's nature. Hence it is more shameful than ordinary rape.

הלכה טז
יָתוֹם וִיתוֹמָה שֶׁבָּאוּ לְהַשִּׂיא אוֹתָן מַשִּׂיאִין הָאִשָּׁה קֹדֶם לָאִישׁ מִפְּנֵי שֶׁבָּשְׁתָּהּ שֶׁל אִשָּׁה מְרֻבָּה. וְלֹא יִפְחֲתוּ לָהּ מִמִּשְׁקַל שִׁשָּׁה דִּינָרִים וּרְבִיעַ דִּינָר שֶׁל כֶּסֶף טָהוֹר. וְאִם יֵשׁ בְּכִיס שֶׁל צְדָקָה נוֹתְנִין לָהּ לְפִי כְּבוֹדָהּ:
כסף משנה
16.
When a male and female orphan come seeking assistance in marriage, we assist the woman before the man, because the woman's shame is greater. She should not be given less than the weight of six and a quarter dinarim of pure silver.46Ketubot 67b says the woman should be given 50 dinarim, but those are not pure silver. Instead, they were seven eights base metals and one eighth pure silver. If the treasury of the charitable fund has the means, we give the money according to her honor.

הלכה יז
הָיוּ לְפָנֵינוּ עֲנִיִּים הַרְבֵּה אוֹ שְׁבוּיִים הַרְבֵּה וְאֵין בַּכִּיס כְּדֵי לְפַרְנֵס אוֹ כְּדֵי לְכַסּוֹת אוֹ כְּדֵי לִפְדּוֹת אֶת כֻּלָּן. מַקְדִּימִין אֶת הַכֹּהֵן לַלֵּוִי. וְלֵוִי לְיִשְׂרָאֵל. וְיִשְׂרָאֵל לְחָלָל. וְחָלָל לִשְׁתוּקִי. וּשְׁתוּקִי לַאֲסוּפִי. וַאֲסוּפִי לְמַמְזֵר. וּמַמְזֵר לְנָתִין. וְנָתִין לְגֵר. שֶׁהַנָּתִין גָּדַל עִמָּנוּ בִּקְדֻשָּׁה. וְגֵר קוֹדֵם לְעֶבֶד מְשֻׁחְרָר. לְפִי שֶׁהָיָה בִּכְלַל אָרוּר:
כסף משנה
17.
If there were many poor people or many captives and one does not have the means to provide sustenance or clothing for all of them or to redeem all of them, a priest is given precedence over a Levite.47I.e. we give respect to the holiness of the priest's lineage. A Levite is given precedence over an Israelite. An Israelite is given precedence over a challal,48The term challal refers to the offspring of a priest who was born from intimate relations forbidden to a priest or is the descendant of the offspring of such relations. See Hilchot Issurei Bi'ah, ch. 19. Such a person - and similarly, those that are mentioned afterwards - is considered to be of blemished lineage. The extent of the blemish determines the person's place on the ladder of precedence. See the Rambam's Commentary to the Mishnah (Horiot 3:8) which mentions further details concerning this order of succession. a challal over a shituki,49The term shituki means "one who is silenced" and refers to a child who knows the identity of his mother, but does not definitely know the identity of his father. He is silenced when he inquires about that matter (Hilchot Issurei Bi'ah 15:12). a shituki over an asufi,50The term asufi means "one who was gathered in" and refers to a child who knows neither the identity of his mother, nor of his father, but instead was "gathered in" from the market place (Hilchot Issurei Bi'ah 15:13). Both a shituki and an asufi are mamzerim of questionable status, i.e., it is possible that they are mamzerim and it is possible that they are not. Hence, they are given precedence over a person who is definitely a mamzer [the Rambam's Commentary to the Mishnah (loc. cit.)]. an asufi over a mamzer,51The term mamzer refers to a child who was born from an incestuous or adulterous relationship. See Hilchot Issurei Bi'ah, ch. 15. a mamzer over a netin,52The term netin, means "the designated ones" and refers to the descendants of the Gibeonites, one of the seven Canaanite nations who converted en masse. Joshua decreed that they be forbidden to marry among the Jewish people. David reinforced that decree, causing it to apply even at a time when the Sanctuary is no longer standing (Hilchot Issurei Bi'ah 12:22-23). and a netin over a convert. [The rationale for the latter is that] a netin grew up with us in holiness.53I.e., as a Jew, and was educated in an environment of holiness 13 [the Rambam's Commentary to the Mishnah (ibid.)]. A convert is granted precedence over a freed servant, for [the latter] was originally among those who were "cursed."54With regard to servants, it is written (Genesis 9:25 : "Cursed is Canaan. He shall be a servant of servants" (Rashi, Ketubot, loc. cit.).

הלכה יח
בַּמֶּה דְּבָרִים אֲמוּרִים בְּשֶׁהָיוּ שְׁנֵיהֶן שָׁוִין בְּחָכְמָה. אֲבָל אִם הָיָה כֹּהֵן גָּדוֹל עַם הָאָרֶץ וּמַמְזֵר תַּלְמִיד חָכָם. תַּלְמִיד חָכָם קוֹדֵם. וְכָל הַגָּדוֹל בְּחָכְמָה קוֹדֵם אֶת חֲבֵרוֹ. וְאִם הָיָה אֶחָד מֵהֶן רַבּוֹ אוֹ אָבִיו אַף עַל פִּי שֶׁיֵּשׁ שָׁם גָּדוֹל מֵהֶן בְּחָכְמָה. רַבּוֹ אוֹ אָבִיו שֶׁהוּא תַּלְמִיד חָכָם קוֹדֵם לָזֶה שֶׁהוּא גָּדוֹל מֵהֶם בְּחָכְמָה:
כסף משנה
18.
When does the above apply? When the two [captives] were equal in knowledge. If, however, a High Priest55Who is given the highest degree of respect in terms of position [the Rambam's Commentary to the Mishnah (loc. cit.)]. was unlearned and a mamzer was a Torah scholar, the Torah scholar receives precedence.56Hilchot Talmud Torah 3:2 interprets Proverbs 3:15 which states that the Torah is "Dearer than pearls" (mip'ninim) as meaning that the Torah receives precedence over the High Priest who enters the inner most chamber (lifnei ulifni'im). Whoever surpasses his colleague in knowledge receives precedence over his colleague.
If, however, one [of the poor or the captives] is one's teacher or father,57The Rambam mentions the teacher before the father, because that is the order of precedence. The rationale is that one's father brought one into this world, but his teacher brings him into the world to come. If, however, his father is a Torah scholar, even if he is a lesser scholar than the teacher, the father receives precedence (ibid. 5:1; Hilchot Gezeilah 12:2). His father or teacher who is a Torah scholar58The Radbaz questions why a person's father is not given precedence over a Torah scholar even if the father is unlearned. Although the Shulchan Aruch (Yoreh De'ah 251:9) quotes the Rambam's ruling, the Siftei Cohen 251:17 states that one's father receives precedence even when he is unlearned. receives precedence over another who surpasses him in wisdom.

זרעים הלכות מתנות עניים פרק ח
Zeraim Aniyim Chapter 8