When the buyer knew that the object was stolen and he must return it to the owners without money, our teacher, the Rema, wrote that even the thief does not need to return his money to him, for he certainly gave it to him as a gift since he knew it was not his and he purchased it. Thus far his words. And they challenged him, for we establish that regarding one who buys a field from a robber when he knew it was robbed, the robber returns his money to him and they are not a gift, as is written in siman 373, and so too here, certainly the thief must return his money to him [Shach and Taz]. And it appears to me like the words of our teacher, the Rema, for we establish regarding one who betroths his sister that the money is a gift because a person knows that betrothal does not take effect with his sister and he resolved and gave it as a gift, as is written in Even HaEzer siman 3 and in the Gemara [Bava Metzia 15b]. The dispute regarding one who betroths his sister is dependent on the dispute regarding one who purchased a robbed field and recognized that it was not his, and nevertheless regarding betrothal we establish that the money is a gift, while regarding a field the money returns. And there is one who says to distinguish between his sister and a stranger, that to his sister he gives a gift but not to another, but it is impossible to say so; for even though the Gemara makes a "tzrichuta" for this reason, this is nothing but a mere "tzrichuta" in the manner of the Talmud and not according to the truth. For if not so, we would have to say that when the robber sold the field to his brother the money is a gift, and regarding betrothal when he betrothed a forbidden relation who is not his relative the money returns, and we have not seen any of the poskim who would say so. And the Rambam in chapter 6 of Zechiyah wrote explicitly the wording "because a person knows that betrothal does not take effect with forbidden relations" and did not write "his sister." According to this, if he betrothed a married woman, the money is also a gift [and so wrote the Lechem Mishneh]. And there is further proof, for in Kiddushin [46b] the Talmud challenges the one who holds that the money is a gift from one who separates his challah as flour, where it returns to the owners and is not a gift; and if we say that only with his sister is the money a gift, it is not a difficulty at all. And so it is explicitly proven in Arachin [30a], see there. And even though the Rosh, of blessed memory, wrote as if doubting this reasoning, nevertheless it should not be said, and also from the Rosh himself it appears that he does not hold this reasoning, and in Kiddushin there the Rosh himself did not mention this reasoning at all. And to distinguish in this, it appears to me that anywhere a person knows clearly that there is nothing to his actions, the money is a gift according to the ruling of our teacher, the Rema. It is only in the case of one who purchased robbed land that the buyer imagines in his mind that until the victim of the robbery comes and removes it by law, he will work it and consume its fruit, and therefore he purchased it but did not intend it as a gift; and this reasoning is proven there in the Gemara, see there. And our teacher, the Rema, holds that certainly if he purchased it in private he did not intend it as a gift, for it could be that he imagined in his mind that the owners would not become aware of this. And so too even if he purchased it publicly but did not know that the owners had not despaired, he purchased it on the doubt that perhaps the owners despaired, and an ordinary theft is a despair of the owners and he would acquire it through despair and a change of domain, and he did not intend it as a gift. But when he knew that the owners had not despaired and were pursuing the stolen object, and he purchased it publicly so that the owners would immediately know, it is simple that he had no doubt that the owners would remove the object from him immediately, and this is exactly like one who betroths his sister. Nevertheless, it appears to me that this is only in a case where the buyer takes the object and afterward gives the money to the seller, for it is proven that he gave it to him as a gift, for if not so, why did he give him the money? But in a case where they give the money and afterward take the object, the buyer can say that his intention was to return the object to the owners and he was unable to act in any other way. And there is proof from what our teacher, the Rema, wrote, that if the buyer said "I intended it for the best" he is believed, and even the owners must return to him the money he gave even with a famous thief, and specifically that if he had not taken it, it would not have been possible for the owners to return it [Shach]. If so, granted that regarding the owners returning the money to him it requires complete clarification, but regarding the thief returning his money to him, if there is only some pretext for the buyer as to why he did so, the money is not a gift. And it is not similar to one who betroths his sister, and only a pretext that he intended to give it as a deposit is no pretext at all, as is explained in the Gemara. And see what I wrote in Even HaEzer siman 27, section 26.
כשהלוקח ידע שהחפץ גנוב הוא וצריך להחזיר להבעלים בלא ממון כתב רבינו הרמ"א דאפילו הגנב א"צ להחזיר לו מעותיו דודאי נתן לו לשם מתנה הואיל וידע שאינו שלו וקנאה עכ"ל והשיגו עליו דהא קיי"ל בלוקח שדה מגזלן כשידע שגזולה היא דמחזיר לו הגזלן מעותיו ואינם מתנה כמ"ש בסי' שע"ג וכן גם בכאן ודאי שצריך הגנב להחזיר לו מעותיו [ש"ך וט"ז] ולי נראה כדברי רבינו הרמ"א דהא קיי"ל במקדש אחותו שהמעות מתנה משום דאדם יודע שאין קדושין תופסין באחותו וגמר ונתן לשם מתנה כמ"ש באה"ע סי' ג' ובגמ' [ב"מ ט"ו:] תלוי פלוגתא דמקדש אחותו בפלוגתא דלקח שדה גזולה והכיר בה שאינו שלו ועכ"ז בקדושין קיי"ל דהמעות מתנה ובשדה המעות חוזרים ויש מי שאומר לחלק בין אחותו לאיש זר דלאחותו יהיב מתנה ולא לאחר וא"א לומר כן דאע"ג דבגמ' עביד צריכותא מטעם זה אין זה אלא צריכותא בעלמא כדרך הש"ס ולא לפי האמת דאל"כ נצטרך לומר דכשהגזלן מכר השדה לאחיו המעות מתנה ובקדושין כשקידש ערוה שאינה קרובתו המעות חוזרין ולא ראינו לאחד מהפוסקים שיאמר כן והרמב"ם פ"ו מזכייה כתב להדיא הלשון משום דאדם יודע שאין קדושין תופסין בעריות ולא כתב אחותו ולפ"ז אם קידש א"א ג"כ המעות מתנה [וכ"כ הלח"מ] ועוד ראיה דבקדושין [מו:] פריך הש"ס אמאן דס"ל דמעות מתנה ממפריש חלתו קמח דחוזר להבעלים ואינה מתנה ואם נאמר דרק באחותו המעות מתנה ל"ק כלל וכן מוכח להדיא בערכין [ל.] ע"ש ואע"פ שהרא"ש ז"ל כתב כמסתפק בסברא זו מ"מ אין לאומרה וגם מהרא"ש עצמו נראה דלא ס"ל סברא זו ובקדושין שם לא הזכיר הרא"ש עצמו סברא זו כלל ולחלק בזה נ"ל דכל מקום שאדם יודע ברור שאין במעשיו כלום המעות מתנה כפי פסק רבינו הרמ"א ורק בלקח קרקע גזולה מדמה הלוקח בדעתו שעד שיבא הנגזל ויוציאה בדין יעשנה ויאכלנה ולכן לקחה אבל לא כוון לשם מתנה וסברא זו מוכח שם בגמ' ע"ש וס"ל לרבינו הרמ"א דודאי אם לקחה בצינעא לא כוון לשום מתנה דיכול להיות שדימה בדעתו שהבעלים לא יתוודעו מזה וכן אפילו אם לקחה בפרהסיא אך שלא ידע שהבעלים לא נתייאשו לקחה על הספק דאולי נתייאשו הבעלים וסתם גנבה הוי יאוש בעלים ויקננה ביאוש ושינוי רשות ולא כוון לשם מתנה אבל כשידע שהבעלים לא נתייאשו ומרדפין אחר הגנבה והוא קנאה בפרהסיא שמיד יוודעו הבעלים פשיטא שלא היה לו שום ספק שהבעלים יוציאו את החפץ ממנו מיד וזהו ממש כמקדש אחותו ומ"מ נ"ל דזה אינו אלא במקום שהלוקח נוטל החפץ ואח"כ נותן הדמים להמוכר דמוכח שנתן לו לשם מתנה דאל"כ למה נתן לו הדמים אבל במקום שנותנים הדמים ואח"כ נוטלין החפץ יכול הלוקח לומר שכוונתו היתה להחזיר החפץ להבעלים ולא היה יכול לעשות באופן אחר וראיה ממה שכתב רבינו הרמ"א דאם אמר הלוקח לטובה נתכוונתי נאמן דאפילו הבעלים צריכין להחזיר לו המעות שנתן אפילו בגנב מפורסם ודוקא שאם היה לוקחו לא היה באפשרות הבעלים להחזיר [ש"ך] א"כ נהי דלענין שהבעלים יחזירו לו המעות צריך בירור גמור אבל לענין שהגנב יחזיר לו מעותיו אם רק יש איזה אמתלא להקונה למה עשה כן אין המעות מתנה ואינו דומה למקדש אחותו ורק אמתלא שכיוון ליתן לשם פקדון אינה אמתלא כלל כמבואר בגמ' ועמ"ש באהע"ז סי' כ"ז סעיף כ"ו: