The explanation of the matters: That a debt which his fellow owes him, whether a loan with a document or an oral loan, and even if the borrower admits to him and says that he will pay—nevertheless, he cannot sanctify it. And it is not similar to a deposit which is in existence. But a loan is given for expenditure, and it is called "not in his possession." And even though the Mordechai at the end of the fifth chapter of Bava Batra ruled that a loan can be sanctified like a deposit, and our teacher, the Rema, in his book Darkhei Moshe (letter 4) brought it, see there, and so wrote the Shita Mekubetzet in Bava Kamma (Bava Metzia 70a) that the Meiri brought so in the name of "some explainers," see there, nevertheless, we do not hold accordingly. And also the Meiri wrote there that the great poskim do not hold so, see there. And the reason seems to be that since the Torah excluded even a thing that is completely his, if it is not completely in his possession like a theft or a deposit that he denied, even though he can extract it through judges, it is not sanctified in movable property as I have written; and if so, regarding a loan which is given for expenditure, even if it is a loan with a document and he has a lien on properties—nevertheless, in the end, it lacks collection, and it is no better than a theft or a deposit that he denied, which he can extract through judges, and it is not sanctified for the reason that it lacks collection. And here too regarding a loan, it is so. But when he said, "When it comes into my hand I will sanctify it," granted that it is not now sanctified, nevertheless, he is obligated by the law of a vow, and in a vow there is no asmachta. And the Rambam in Arakhin there brought a proof from our father Yaakov, who said, "If God will be with me etc.," and it is written, "where you vowed a vow to Me there." And so too if in the presence of the three of them he handed over the debt to tzedakah—the tzedakah rightly acquires it, for we hold that the presence of the three of them is effective also regarding a debt, as I wrote in Choshen Mishpat siman 126. However, in the presence of the three of them, there must be a gabbai or the city leaders, or another important person who will acquire it on behalf of the poor, for in every presence of the three of them, the recipient must be in the presence of the three of them as is explained there. And therefore it is also forbidden to change it as if he already handed it over to the hand of a gabbai, for it is forbidden to change it as will be explained in siman 259. And one should not ask: that when he said "it shall be sanctified," why is it nothing, let him be obligated at any rate by the law of a vow? For it is not so, behold he did not say "I will sanctify it" but rather "it shall now be sanctified," and now he cannot sanctify it (Shach, subsection 15). And regarding a vow, we do not follow the intent understood from his words, but rather when he vowed with his mouth or at any rate when he resolved in his heart to vow to tzedakah such and such. But not when he said a thing that is not according to the law at all; even though from this it is understood that his will is to vow, nevertheless, in the end, he has not yet vowed.
ביאור הדברים: דחוב שחייב לו חבירו, בין מלוה בשטר בין מלוה בעל פה, ואפילו הלוה מודה לו ואומר שישלם – מכל מקום אינו יכול להקדישו. ולא דמי לפיקדון שהוא בעין. אבל מלוה להוצאה ניתנה, ומקרי שאינו ברשותו. ואף על פי שהמרדכי בסןף פרק חמישי דבבא בתרא פסק דמלוה יכול להקדיש כפיקדון, ורבינו הרמ"א בספרו דרכי משה (אות ד') הביאו עיין שם, וכן כתב הש"מ בבבא קמא (בבא מציעא ע א) שכן הביא המאירי בשם יש מפרשים עיין שם, מכל מקום לא קיימא לן כן. וגם המאירי כתב שם שגדולי הפוסקים לא סבירא להו כן, עיין שם. והטעם נראה דכיון שהתורה מיעטה שגם דבר שהיא שלו לגמרי, אם אינה ברשותו לגמרי כמו גזל ופיקדון דכפריה, אף על פי שיכול להוציאו בדיינין אינו קדוש במטלטלין כמו שכתבתי, ואם כן בחוב שלהוצאה ניתנה אף שהיא מלוה בשטר ויש לו שיעבוד נכסים – מכל מקום סוף סוף מחסרא גוביינא, ולא עדיפא מגזל ופיקדון דכפריה, שיכול להוציאו בדיינים, ואינו קדוש מטעם מחסרא גוביינא. והכא נמי בהלואה כן הוא. אבל כשאמר "כשיבוא לידי אקדישנו", נהי דאינו עתה הקדש, מכל מקום חייב מטעם נדר, ובנדר ליכא אסמכתא. והרמב"ם בערכין שם הביא ראיה מיעקב אבינו, שאמר "אם יהיה אלקים עמדי וגו'", וכתיב "אשר נדרת לי שם נדר". וכן אם במעמד שלשתן מסר החוב לצדקה – שפיר קונה הצדקה, דקיימא לן דמעמד שלשתן מהני גם בחוב, כמו שכתבתי בחושן משפט סימן קכ"ו. אך בהמעמד שלשתן צריך שיהיה גבאי או טובי העיר, או שאר אדם חשוב שהוא יזכה בו במקום העניים, דבכל מעמד שלשתן צריך להיות המקבל בהמעמד שלשתן כמבואר שם. ולכן גם אסור לשנותו כאילו כבר מסר ליד גבאי, שאסור לשנותו כמו שיתבאר בסימן רנ"ט. ואין לשאול: דכשאמר "יהא הקדש" למה אינו כלום, יתחייב על כל פנים מדין נדר? דאינו כן, שהרי לא אמר "אקדישנו" אלא "יהיה עתה הקדש", ועתה אינו יכול להקדישו (ש"ך סיף קטן ט"ו). ובנדר לא אזלינן בתר כוונת המובן מדבריו, אלא כשנדר בפיו או על כל פנים כשגמר בלבו לנדור לצדקה כך וכך. אבל לא כשאמר דבר שאינו לפי הדין כלל, אף על פי שמזה מובן שרצונו לנדור, מכל מקום סוף סוף עדיין לא נדר.