With gratitutd to Professor Alyssa Gray for cmpilng a much longer source packet from which these are excerpted.
(י) פִּדְיוֹן שְׁבוּיִים קוֹדֵם לְפַרְנָסַת עֲנִיִּים וְלִכְסוּתָן. וְאֵין לְךָ מִצְוָה גְּדוֹלָה כְּפִדְיוֹן שְׁבוּיִים שֶׁהַשָּׁבוּי הֲרֵי הוּא בִּכְלַל הָרְעֵבִים וְהַצְּמֵאִים וַעֲרוּמִּים וְעוֹמֵד בְּסַכָּנַת נְפָשׁוֹת. וְהַמַּעֲלִים עֵינָיו מִפִּדְיוֹנוֹ הֲרֵי זֶה עוֹבֵר עַל (דברים טו ז) "לֹא תְאַמֵּץ אֶת לְבָבְךָ וְלֹא תִקְפֹּץ אֶת יָדְךָ" וְעַל (ויקרא יט טז) "לֹא תַעֲמֹד עַל דַּם רֵעֶךָ" וְעַל (ויקרא כה נג) "לֹא יִרְדֶּנּוּ בְּפֶרֶךְ לְעֵינֶיךָ". וּבִטֵּל מִצְוַת (דברים טו ח) (דברים טו יא) "פָתֹחַ תִּפְתַּח אֶת יָדְךָ לוֹ". וּמִצְוַת (ויקרא כה לו) "וְחֵי אָחִיךָ עִמָּךְ". (ויקרא יט יח) "וְאָהַבְתָּ לְרֵעֲךָ כָּמוֹךָ". (משלי כד יא) "וְהַצֵּל לְקֻחִים לַמָּוֶת" וְהַרְבֵּה דְּבָרִים כָּאֵלּוּ. וְאֵין לְךָ מִצְוָה רַבָּה כְּפִדְיוֹן שְׁבוּיִים:
(יא) אַנְשֵׁי הָעִיר שֶׁגָּבוּ מָעוֹת לְבִנְיַן בֵּית הַכְּנֶסֶת וּבָא לָהֶן דְּבַר מִצְוָה מוֹצִיאִין בּוֹ הַמָּעוֹת. קָנוּ אֲבָנִים וְקוֹרוֹת לֹא יִמְכְּרוּם לִדְבַר מִצְוָה אֶלָּא לְפִדְיוֹן שְׁבוּיִים. אַף עַל פִּי שֶׁהֵבִיאוּ אֶת הָאֲבָנִים וּגְדָרוּם וְאֶת הַקּוֹרוֹת וּפְסָלוּם וְהִתְקִינוּ הַכּל לַבִּנְיָן מוֹכְרִין הַכּל לְפִדְיוֹן שְׁבוּיִים בִּלְבַד. אֲבָל אִם בָּנוּ וְגָמְרוּ לֹא יִמְכְּרוּ אֶת בֵּית הַכְּנֶסֶת אֶלָּא יִגְבּוּ לְפִדְיוֹנָן מִן הַצִּבּוּר:
(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.
How might the metaphor of a synagogue under construction (or a completed one) apply to the current situation in the State of Israel?
(א) שאלת ממני אודיעך דעתי על הא דתנן אין פודין את השבויים יותר על כדי דמיהן אי הוי דמיהן כעבד הנמכר בשוק או הוי דמיהן כמו שנמכרים השבויים עכו"ם:
(ב) תשובה כבר נהגו כל ישראל לפדות את השבויים יותר מכדי דמיהן הנמכרי' בשוק שהרי זקן או קטן אין שוה בשוק יותר מעשר' דינרין ופודין אותו בק' או יותר ...
I was asked my opinion regarding the halacha that we do not redeem captives for more than they are worth--whether this is their value if they themselves were sold as slaves in the marketplace or the price fetched by non-Jews.
My answer: It is already the practice of all Israel to redeem captives for more than their market value. For behold, an elderly person or a child in a slave market is not worth more than 10 dinars, and we regularly redeem them for 100 dinars or more! ...