One who had a deposit in the hand of another may transfer it through sale or gift just as if it were in his own hand, because a deposit is considered as being in the domain of its owner, for it was not given to the bailee to spend, and it is under the presumption of being extant, and we do not fear that perhaps it was lost. The depositor can transfer it even when the deposit is in another city and the bailee is not here. However, regarding a loan, since it was given to be spent, the lender cannot transfer it to another, even when the money is still physically in the hand of the borrower, because it is not considered as being in the domain of the lender, and the lender can only transfer it through "the presence of the three of them," as written in siman 126. And if it was a loan with a deed, he transfers the deed through writing and delivery, as written in siman 66, and this is called "in his domain" because there is the deed here which is delivered to acquire the lien through it. And that which we said, that he can transfer a deposit, this is specifically when the bailee does not deny the deposit; but when he denies it and says "you did not deposit with me," he cannot transfer it, for this is as if it is not in his domain even though the truth is with him. And even though he can write a power of attorney even in the case of a denial, as written in siman 123, this is from the enactment of the sages as written there; but to transfer it entirely, he cannot. Even if he has witnesses that he deposited with him, nevertheless, since he denies it now, it is not considered as being in his domain [it appears to me]. And one who had a collateral in the hand of others can sell the surplus over his debt; only the lender collects his debt first, and the buyer receives the remainder. And so too he can consecrate it; and if the consecration takes effect against the debt of the lender, it was explained in Yoreh Deah siman 221. And so too one who leases his house to another, the house is called "in the domain of the lessor," such that he can sell it or lease it to another within the time of the first lessee, so that when his time concludes, it will be sold or leased to the second. And we do not say that it is not called "in his domain" and his current leasing is nothing; rather, it is exactly like his own. Therefore, the lessor cannot retract even before the conclusion of the time of the first. And even if he leased it without specification, we do not say that the acquisition does not take effect until after the time of the first and he can retract until that time; rather, the lease begins from now, and it is as if he said "from now and after such-and-such time," unless he explicitly said that the acquisition should not begin until after the time of the first, for then he can retract before that time. For that which our sages, of blessed memory, said, "a lease for a day is a sale," it is only in certain details like overcharging and the like, but the essence of the house is considered entirely the lessor's, for "a lease does not acquire" [Avodah Zarah 15a]. And so is the primary law, not like the one who hesitates in this. And regarding consecration, its law is like a deposit and was explained there [Netivot HaMishpat].
מי שהיה לו פקדון ביד אחר הרי מקניהו במכר ומתנה כמו שהוא בידו לפי שפקדון הוא כברשות בעליו דהרי לא ניתן להנפקד שיוציאנו והוא בחזקת שהוא קיים ואין חוששין שמא נאבד ויכול המפקיד להקנותו אף כשהפקדון הוא בעיר אחרת ואין הנפקד כאן אבל הלואה כיון שניתנה להוצאה אין המלוה יכול להקנותה לאחר ואף כשעדיין המעות הם בעין ביד הלוה לפי שאינם נחשבים כברשותו של מלוה ואין המלוה יכול להקנותם רק במעמד שלשתן כמ"ש בסי' קכ"ו ואם היתה מלוה בשטר מקנה את השטר בכתיבה ומסירה כמ"ש בסי' ס"ו וזה נקרא ברשותו שהרי יש כאן השטר הנמסר לקנות בו השיעבוד וזה שאמרנו שפקדון יכול להקנותו זהו דוקא כשהנפקד אינו כופר בהפקדון אבל כשכופר ואומר לא הפקדת אצלי אינו יכול להקנותו שזהו כאינו ברשותו אף שהאמת אתו ואע"ג דהרשאה יכול לכתוב גם בכפריה כמ"ש בסימן קכ"ג זהו מתקנת חכמים כמ"ש שם אבל להקנותו לגמרי יכול אף שיש לו עדים שהפקיד אצלו מ"מ מדכפריה עתה אינו נחשב כברשותו [נ"ל] ומי שהיה לו משכון ביד אחרים יכול למכור את היתר על חובו רק המלוה גובה תחלה חובו והמותר יקבל הלוקח וכן יכול להקדישו ואם חל ההקדש נגד חובו של המלוה נתבאר ביו"ד סי' רכ"א וכן המשכיר ביתו לאחר נקרא הבית ברשות המשכיר שיכול למוכרה ולהשכירה לאחר בתוך זמנו של השוכר הראשון שכשתכלה זמנו תהיה נמכרת או מושכרת להשני ולא אמרינן שאינה נקראת ברשותו ואין השכרתו עתה כלום אלא שהיא ממש כשלו ולכן אין המשכיר יכול לחזור בו אף קודם כלות הזמן של הראשון ואפילו השכירו בסתם לא אמרינן דאין הקנין חל רק לאחר זמנו של הראשון ויכול לחזור בו עד אותו זמן אלא השכירות מתחיל מעכשיו והוי כאומר מעכשיו ולאחר זמן פלוני אם לא שאמר מפורש שלא יתחיל הקנין אלא לאחר זמנו של ראשון דאז יכול לחזור בו קודם זה הזמן דזה שאמרו חז"ל שכירות ליומא ממכר הוא אינו אלא באיזה פרטים כמו באונאה וכה"ג אבל עיקר הבית נחשבת לגמרי של המשכיר דשכירות לא קניא [עכו"ם ט"ו] וכן עיקר לדינא דלא כיש מי שמגמגם בזה ולענין הקדש דינו כפקדון ונתבאר שם [נה"מ]: