Shulchan Arukh, Orach Chayim Siman 441
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
עכו"ם שהלוה לישראל על חמצו ומשכנו בידו ואמר ליה מעכשיו יהא שלך אם לא אפרע לך לזמן פלוני והגיע הזמן ולא פרעו מותר אפילו לא הגיע הזמן שקבע עד אחר הפסח דכשהגיע הזמן ולא פרעו נקנה לו למפרע וה"ל חמצו של עכו"ם:
A non-Jew who lent to an Israelite on his Chametz and took it as a pledge in his hand, and said to him: "From now it shall be yours if I do not repay you by a certain time," and the time arrived and he did not repay him, it is permitted even if the time he set did not arrive until after Pesach. Since when the time arrived and he did not repay him, it is acquired by him retroactively, and thus it is considered to be the Chametz of the non-Jew.
ישראל שהלוה לעכו"ם על חמצו אם משכנו בידו ואמר ליה מעכשיו והגיע הזמן אפילו אחר הפסח ולא פרעו אפילו אין אחריותו עליו אסור משום דקני ליה למפרע אבל אם לא אמר ליה מעכשיו ואין אחריותו עליו מותר:
An Israelite who lent to a non-Jew on his Chametz, if he took it as a pledge in his hand and said to him: "from now," and the time arrived even after Pesach and he did not repay him, even if the responsibility for it does not fall upon him, it is forbidden, because he acquires it retroactively. But if he did not say to him: "from now," and the responsibility for it does not fall upon him, it is permitted: