If one stole a field and sold it, and the purchaser did not know that it was stolen and he improved it, the owner takes it from the purchaser as it is with its improvement. The purchaser collects all of the improvement, except that from the owner he collects according to the law of one who descends to a field without permission, for he indeed descended without his permission. Therefore, if the improvement is greater than the expenditure, he takes the expenditure from the owner, and the remainder up to the value of the improvement he takes from the gazlan along with the principal. However, the principal he collects from encumbered properties, for one who purchases land and it is seized from him collects from other purchasers, as has been explained in siman 225, and even if he sold it to him only with witnesses, as has been explained in siman 116, and even if acharayut was not written in the deed, unless he specified in the deed that he is selling without acharayut. But the improvement he collects from unencumbered properties because the improvement is not known to other purchasers; and once he stood in judgment regarding the improvement, he collects from purchasers who bought from the gazlan afterwards, for from the time of standing in judgment there is a rumor, as has been explained in siman 372. And if the expenditure is greater than the improvement, he takes from the owner expenditure in the amount of the improvement, and the rest of the expenditure he takes from the gazlan, for regarding him he is like one who descends with permission who takes all the expenditure [it appears to me]. And if the improvement is equal to the expenditure, he takes it from the owner, and from the gazlan he takes only the principal. And if it is an improvement that came of itself, such as a palm tree that grew thick or the like, he takes nothing from the owner, and from the gazlan he takes the entire improvement [Tur].
גזל שדה ומכרה והלוקח לא ידע שהיא גזולה והשביחה נוטלה הנגזל מהלוקח כמו שהיא בשבחה והלוקח טורף כל השבח רק שמהנגזל טורף כדין יורד שלא ברשות דהא שלא ברשותו ירד ולכן אם השבח יתר על ההוצאה נוטל ההוצאה מהנגזל והמותר עד שיעור השבח נוטל מהגזלן עם הקרן רק הקרן גובה ממשועבדים דלוקח קרקע וטרפוה ממנו גובה מלקוחות כמ"ש בסי' רכ"ה ואפילו מכר לו רק בעדים כמ"ש בסי' קט"ז ואפילו אינו נכתב אחריות בשטר אא"כ פירש בהשטר שמוכר שלא באחריות והשבח גובה מנכסים בני חורין לפי שאין ידוע ללקוחות מהשבח ומשעמד בדין על השבח גובה מלקוחות שלקחו אח"כ מהגזלן דמשעת העמדה בדין יש קול כמ"ש בסי' שע"ב ואם ההוצאה יתירה על השבח נוטל מהנגזל הוצאה כשיעור שבח ויתר ההוצאה נוטל מהגזלן דלגביה הוא כיורד ברשות שנוטל כל ההוצאה [נ"ל] ואם השבח שוה לההוצאה נוטלה מהנגזל ומהגזלן אינו נוטל רק הקרן ואם הוא שבחא דממילא כגון דילקא ואלים וכיוצא בזה אינו נוטל מהנגזל כלום ומהגזלן נוטל כל השבח [טור]: