Biblical references to tzedakah
Leviticus 25:35
וְכִי יָמוּךְ אָחִיךָ וּמָטָה יָדוֹ עִמָּךְ וְהֶחֱזַקְתָּ בּוֹ גֵּר וְתוֹשָׁב וָחַי עִמָּךְ:
And if your fellow becomes poor and their means fail with you, then you shall strengthen your fellow, whether a stranger or a settler, your fellow shall live with you. [[JPS translation] Edited for gender neutrality]
Leviticus 19:9-10

בְקֻצְרְכֶם אֶת קְצִיר אַרְצְכֶם לֹא תְכַלֶּה פְּאַת שָׂדְךָ לִקְצֹר וְלֶקֶט קְצִירְךָ לֹא תְלַקֵּט: וְכַרְמְךָ לֹא תְעוֹלֵל וּפֶרֶט כַּרְמְךָ לֹא תְלַקֵּט לֶעָנִי וְלַגֵּר תַּעֲזֹב אֹתָם אֲנִי ה' אֱלֹהֵיכֶם:

When you reap the harvest of your land, you shall not reap all the way to the corners of your field, or gather the gleanings of your harvest. You shall not pick your vineyard bare, or gather the fallen fruit of your vineyard; you shall leave them for the poor and the stranger: I am Adonai your God. [JPS translation]

Ezekiel 16:49-50
הִנֵּה זֶה הָיָה עֲוֹן סְדֹם אֲחוֹתֵךְ גָּאוֹן שִׂבְעַת לֶחֶם וְשַׁלְוַת הַשְׁקֵט הָיָה לָהּ וְלִבְנוֹתֶיהָ וְיַד עָנִי וְאֶבְיוֹן לֹא הֶחֱזִיקָה: וַתִּגְבְּהֶינָה וַתַּעֲשֶׂינָה תוֹעֵבָה לְפָנָי וָאָסִיר אֶתְהֶן כַּאֲשֶׁר רָאִיתִי:
Only this was the sin of your sister Sodom: arrogance! She and her daughters had plenty of bread and untroubled tranquility; yet she did not support the poor and the needy. In their haughtiness, they committed abomination before Me; and so I removed them, as you saw. [JPS translation]
Deuteronomy 24:19-22
כִּי תִקְצֹר קְצִירְךָ בְשָׂדֶךָ וְשָׁכַחְתָּ עֹמֶר בַּשָּׂדֶה לֹא תָשׁוּב לְקַחְתּוֹ לַגֵּר לַיָּתוֹם וְלָאַלְמָנָה יִהְיֶה לְמַעַן יְבָרֶכְךָ ה' אֱלֹהֶיךָ בְּכֹל מַעֲשֵׂה יָדֶיךָ: כִּי תַחְבֹּט זֵיתְךָ לֹא תְפַאֵר אַחֲרֶיךָ לַגֵּר לַיָּתוֹם וְלָאַלְמָנָה יִהְיֶה: כִּי תִבְצֹר כַּרְמְךָ לֹא תְעוֹלֵל אַחֲרֶיךָ לַגֵּר לַיָּתוֹם וְלָאַלְמָנָה יִהְיֶה: וְזָכַרְתָּ כִּי עֶבֶד הָיִיתָ בְּאֶרֶץ מִצְרָיִם עַל כֵּן אָנֹכִי מְצַוְּךָ לַעֲשׂוֹת אֶת הַדָּבָר הַזֶּה:
When you reap the harvest in your field and overlook a sheaf in the field, do not turn back to get it; it shall go to the stranger, the orphan, and the widow -- in order that Adonai your God may bless you in all your undertakings. When you beat down the fruit of your olive trees, do not go over them again; that shall go to the stranger, the orphan, and the widow. When you gather the grapes of your vineyard, do not pick it over again; that shall go to the stranger, the orphan, and the widow. Always remember that you were a slave in the land of Egypt; therefore do I enjoin you to observe this commandment. [JPS translation edited for gender-neutrality]
Deuteronomy 15:7-11
כִּי יִהְיֶה בְךָ אֶבְיוֹן מֵאַחַד אַחֶיךָ בְּאַחַד שְׁעָרֶיךָ בְּאַרְצְךָ אֲשֶׁר יְקֹוָק אֱלֹהֶיךָ נֹתֵן לָךְ לֹא תְאַמֵּץ אֶת לְבָבְךָ וְלֹא תִקְפֹּץ אֶת יָדְךָ מֵאָחִיךָ הָאֶבְיוֹן: כִּי פָתֹחַ תִּפְתַּח אֶת יָדְךָ לוֹ וְהַעֲבֵט תַּעֲבִיטֶנּוּ דֵּי מַחְסֹרוֹ אֲשֶׁר יֶחְסַר לוֹ: הִשָּׁמֶר לְךָ פֶּן יִהְיֶה דָבָר עִם לְבָבְךָ בְלִיַּעַל לֵאמֹר קָרְבָה שְׁנַת הַשֶּׁבַע שְׁנַת הַשְּׁמִטָּה וְרָעָה עֵינְךָ בְּאָחִיךָ הָאֶבְיוֹן וְלֹא תִתֵּן לוֹ וְקָרָא עָלֶיךָ אֶל יְקֹוָק וְהָיָה בְךָ חֵטְא: נָתוֹן תִּתֵּן לוֹ וְלֹא יֵרַע לְבָבְךָ בְּתִתְּךָ לוֹ כִּי בִּגְלַל הַדָּבָר הַזֶּה יְבָרֶכְךָ יְקֹוָק אֱלֹהֶיךָ בְּכָל מַעֲשֶׂךָ וּבְכֹל מִשְׁלַח יָדֶךָ: (יא) כִּי לֹא יֶחְדַּל אֶבְיוֹן מִקֶּרֶב הָאָרֶץ עַל כֵּן אָנֹכִי מְצַוְּךָ לֵאמֹר פָּתֹחַ תִּפְתַּח אֶת יָדְךָ לְאָחִיךָ לַעֲנִיֶּךָ וּלְאֶבְיֹנְךָ בְּאַרְצֶךָ: ס
If, however, there is a needy person among you, one of your kin in any of your settlements in the land that the Lord your God is giving you, do not harden your heart and shut your hand against your needy kin. Rather, you must open your hand and lend them sufficient for whatever they need. Beware lest you harbor the base thought, "The seventh year, the year of remission, is approaching," so that you are mean to your needy kins and give him nothing. They will cry out ot the Lord against you, and you will incur no guilt. Give to them readily and have no regrets when you do so, for in return the Lord your God will bless you in all your efforts and in all your undertakings. [JPS translation. Edited for gender neutrality]
Deuteronomy 10:18-19

עֹשֶׂה מִשְׁפַּט יָתוֹם וְאַלְמָנָה וְאֹהֵב גֵּר לָתֶת לוֹ לֶחֶם וְשִׂמְלָה: וַאֲהַבְתֶּם אֶת הַגֵּר כִּי גֵרִים הֱיִיתֶם בְּאֶרֶץ מִצְרָיִם:

[God] upholds the cause of the orphan and the widow, and befriends the stranger, providing him/her with food and clothing. -- You too must befriend the stranger, for you were strangers in the land of Egypt. [JPS translation edited for gender-neutrality]