Shemot22:24

אִם־כֶּסֶף תַּלְוֶה אֶת־עַמִּי אֶת־הֶעָנִי עִמָּךְ לֹא־תִהְיֶה לוֹ כְּנֹשֶׁה לֹא־תְשִׂימוּן עָלָיו נֶשֶׁךְ׃

If you lend money to My people, to the poor man who is with you, you shall not be to him as a creditor, you shall not lay interest upon him.

Shemot 22:24

אִם־כֶּסֶף תַּלְוֶה אֶת־עַמִּי

Shemot / Exodus 22:24 · Pshat

Shemot 22:24

אִם־כֶּסֶף תַּלְוֶה אֶת־עַמִּי אֶת־הֶעָנִי עִמָּךְ לֹא־תִהְיֶה לוֹ כְּנֹשֶׁה לֹא־תְשִׂימוּן עָלָיו נֶשֶׁךְ׃

If you lend money to My people, to the poor man who is with you, you shall not be to him as a creditor, you shall not lay interest upon him.

Pshat פְּשָׁט

To whom to lend

The verse sounds gentle: "if you lend". But the commentators read in it an obligation, an order of who comes first, and a rule for how to act when the poor man cannot repay.

Rashi: "if" here is not optional but a commandment. And there is an order: your own people before a stranger, the poor before the rich, the poor of your own town before others. And when the time comes and the poor man has nothing to pay with, do not press him or shame him. Rashbam: do not come to him for a pledge, as a creditor comes.

How Rashi and Rashbam explain it

Rashi If you lend money to My people

Rabbi Yishmael says: every "if" in the Torah is optional, except three, and this is one of them.

Rashi My people

My people and a stranger: My people come first. The poor and the rich: the poor come first. The poor of your town and the poor of another town: the poor of your town come first.

And this is its meaning: "if you lend money", lend it to My people and not to a stranger. And to whom of My people? To the poor. And to which poor? To the one who is with you.

Another explanation: "the poor", so that you do not treat him with contempt when you lend to him, for he is My people.

Rashi Do not be to him as a creditor

Do not demand from him by force. If you know he has nothing, do not act toward him as though you had lent to him, but as though you had not, that is, do not shame him.

Rashbam Do not be to him as a creditor

When the time comes to collect the debt, do not press him to give a pledge, as it is written: "and the creditor has come to take" (Melachim II / II Kings 4:1), or: "to which of My creditors did I sell you" (Yeshayahu / Isaiah 50:1). Every creditor, when the time comes, comes to take a pledge.

Takeaway

Three "ifs" (אִם) that mean an obligation: "if you lend money", "if you make Me an altar of stones" (Shemot / Exodus 20:22) and "if you bring an offering of first fruits" (Vayikra / Leviticus 2:14). Rashi explains so in the portion of Yitro too.
The order "your people, the poor, your town" the Talmud derives from the words of this verse (Bava Metzia 71a).
A "creditor" (נֹשֶׁה) is one who demands a debt. Rashbam brings two verses where the word stands next to collecting.
The word "interest" (נֶשֶׁךְ) means "bite". Rashi explains: interest bites like a snake, unnoticed at first, and then the swelling rises to the very crown of the head.