Shulchan Aruch: Yoreh De'ah, siman 247 יורה דעה

1
גודל שכר צדקה ואם כופין עליה. ובו ד' סעיפים:
מצות עשה ליתן צדקה כפי השגת יד וכמה פעמים נצטוינו בה במצות עשה ויש לא תעשה במעלים עיניו ממנה שנאמר לא תאמץ את לבבך ולא תקפוץ את ידך וכל המעלים עיניו ממנה נקרא בליעל וכאילו עובד אלילים ומאד יש ליזהר בה כי אפשר שיבא לידי שפיכות דמים שימות העני המבקש אם לא יתן לו מיד כעובדא דנחום איש גם זו:
It is a positive commandment to give tzedakah according to the achieving hand [within reach, how much you can afford], and a few times we were commanded about it in the form of positive commandment. And there is a negative commandment in one who turns his eyes away, as it is said: “You shall not harden your heart nor shut your hand” (Devarim 15:7). And all who avert their eyes are called wicked, and it’s as if their worship is idol worship. And much so one is to be cautious about it, because it is possible that it will lead to bloodshed, that poor person who asks will die if there is none giving to his hand, like the story of Naham Ish Gamzu.
2
לעולם אין אדם מעני מן הצדקה ולא דבר רע ולא היזק מתגלגל על ידה שנאמר והיה מעשה הצדקה שלום:
3
כל המרחם על העניים הקב"ה מרחם עליו: הגה ויתן האדם אל לבו שהוא מבקש כל שעה פרנסתו מהקב"ה וכמו שהוא מבקש שהקב"ה ישמע שועתו כך הוא ישמע שועת עניים גם יתן אל לבו כי הוא גלגל החוזר בעולם וסוף האדם שיבא הוא או בנו או בן בנו לידי מדה זו וכל המרחם על אחרים מרחמין עליו (מלשון הטור):
All the ones that are merciful to the poor, the Holy One Blessed Be He is merciful to them. Rema: And the man should take it to heart that he should request every hour of his livelihood from the Holy One Blessed Be He, and like that he requests of this from the HKBH, so should he hear the pleas of poor men. Also he takes it to heart that what goes around comes around in the world, and end of the man that will come him or his son or his grandson are the ones in this state, and all the mercy he has shown to others, the Merciful one will have upon him. (language of the Tur)
4
הצדקה דוחה את הגזירות הקשות וברעב תציל ממות כמו שאירע לצרפית : הגה והיא מעשרת ואסור לנסות הקב"ה כי אם בדבר זה שנאמר ובחנוני נא בזאת וגו' (טור מגמרא פ"ק דתענית) וי"א דוקא בנתינת מעשר מותר לנסות הקב"ה אבל לא בשאר צדקה (ב"י דכך משמע מש"ס שם):
Charity dispels harsh decrees and famine (&) saves from death as happened at Zarephath. Rema: This is referring to tithing and one should not test God except in this regard as it was said "And try Me now herewith" [with tithing] (Tur from the last chapter of Gemara Tanit), and there are those who say that specifically in regards to giving tithes [on produce from Israel] is it allowed to test the Holy One Blessed be His name, but not in regards to other forms of charity. (The Bais Yosef seems to hold this way from Shas there):

Texts on this page

Hebrew and English are paired by Sefaria's divisions of the text. Where no open translation exists, the English column is empty. All our sources.