איכא דמתני לה להא דרב הונא אהא דתני רב יוסף (שמות כב, כד) אם כסף תלוה את עמי את העני עמך עמי ונכרי עמי קודם עני ועשיר עני קודם ענייך ועניי עירך ענייך קודמין עניי עירך ועניי עיר אחרת עניי עירך קודמין
There are those who teach that which Rav Huna said in connection with that which Rav Yosef taught: The verse states: “If you lend money to any of My people, even to the poor person who is with you” (Exodus 22:24). The term “My people” teaches that if one of My people, i.e., a Jew, and a gentile both come to borrow money from you, My people take precedence. The term “the poor person” teaches that if a poor person and a rich person come to borrow money, the poor person takes precedence. And from the term: “Who is with you,” it is derived: If your poor person, meaning one of your relatives, and one of the poor of your city come to borrow money, your poor person takes precedence. If it is between one of the poor of your city and one of the poor of another city, the one of the poor of your city takes precedence.