פּירוש אויף שמות 22:24

אִם־כֶּ֣סֶף ׀ תַּלְוֶ֣ה אֶת־עַמִּ֗י אֶת־הֶֽעָנִי֙ עִמָּ֔ךְ לֹא־תִהְיֶ֥ה ל֖וֹ כְּנֹשֶׁ֑ה לֹֽא־תְשִׂימ֥וּן עָלָ֖יו נֶֽשֶׁךְ׃

אַז דו װעסט געלט לײַען מײַן פֿאָלק, דעם אָרימאַן בײַ דיר, זאָלסטו ניט זײַן צו אים װי אַ בעל-חוב; איר זאָלט ניט אַרױפֿלײגן אױף אים צינזן.

Rashi

אם כסף תלוה את עמי IF THOU LEND MONEY TO ANY OF MY PEOPLE — R. Yishmael said: wherever אם occurs in Scripture it is used of an act the performance of which is optional, except in three instances, of which this is one (Mekhilta; cf. Rashi on Exodus 20:22 - the translation therefore is: “When thou lendeth etc.”).
פֿרעגט אַ רבֿBookmarkShareCopy

Chizkuni

אם כסף, the reason why the law to extend loans to the needy has been written here is that the three categories of people mentioned previously, i.e. the proselyte, the orphan and the widow are the ones most in need of borrowing money.
פֿרעגט אַ רבֿBookmarkShareCopy

Da'at Zekenim

אם כסף תלוה, “if you lend money, etc.;” Rabbi Yehudah hachassid says that the reason this verse commences with the word אם, “if,” instead the word כאשר, “when,” is that there are occasions when this is not a commandment but something that is voluntary, such as when the borrower has a reputation of not repaying a loan.
פֿרעגט אַ רבֿBookmarkShareCopy