(יד) הוּא הָיָה אוֹמֵר, אִם אֵין אֲנִי לִי, מִי לִי. וּכְשֶׁאֲנִי לְעַצְמִי, מָה אֲנִי. וְאִם לֹא עַכְשָׁיו, אֵימָתָי:
(14) He [Rabbi Hillel] used to say: If I am not for myself, who is for me? But if I am for my own self [only], what am I? And if not now, when?
Arukh HaShulkhan, Yorah Deah 251:4
However, regarding the principle [of prioritizing one's relatives], I find this matter very difficult. For if we take this principle literally, that the top categories take precedence over the bottom ones, to the extent that one does not have to give at all to the lower categories, if so, consider the following. It is well known that every rich person has a lot of poor relatives [and will give all his tzedakah only to them]. How much more so will this be the case for a normal homeowner who has limited tzedakah funds. If we were to follow the above principle, then those poor people who have no rich relatives will die from starvation! How can we say such a thing? Therefore, it is clear to me that the actual ruling is that every homeowner or rich person who gives tzedakah is obligated to give a portion to the poor who are not his relatives. However, he should give more to his relatives than to those who are not his relatives. And similarly regarding this entire hierarchy.
(י) אַרְבַּע מִדּוֹת בָּאָדָם. הָאוֹמֵר שֶׁלִּי שֶׁלִּי וְשֶׁלְּךָ שֶׁלָּךְ, זוֹ מִדָּה בֵינוֹנִית. וְיֵשׁ אוֹמְרִים, זוֹ מִדַּת סְדוֹם. שֶׁלִּי שֶׁלְּךָ וְשֶׁלְּךָ שֶׁלִּי, עַם הָאָרֶץ. שֶׁלִּי שֶׁלְּךָ וְשֶׁלְּךָ שֶׁלָּךְ, חָסִיד. שֶׁלִּי שֶׁלִּי וְשֶׁלְּךָ שֶׁלִּי, רָשָׁע:
(10) There are four types of character in human beings: One that says: “mine is mine, and yours is yours”: this is a commonplace type; and some say this is a Sodom-type of character. [One that says:] “mine is yours and yours is mine”: is an unlearned person (am haaretz); [One that says:] “mine is yours and yours is yours” is a pious person. [One that says:] “mine is mine, and yours is mine” is a wicked person.