The Rambam wrote in chapter 8: Land can never be stolen; rather, it remains in the possession of its owners. Even if it was sold to a thousand people one after another and the owners despaired, it returns to the victim of the theft without payment. Anyone from whose hand it is removed returns to the one who sold it to him, and the second seller returns to the first seller, until the purchaser from the gazlan returns to the gazlan and takes from him. Thus far his words. And there are some of our teachers who hold that even though it cannot be stolen, nevertheless, ye'ush applies to land, and so it is explicitly stated in the Yerushalmi [Tosafot Bava Batra 44a]. And the Rambam, of blessed memory, perhaps holds that certainly regarding a matter of prohibition ye'ush is effective, but not regarding acquisition, for there is no change of domain here since it remains in its place. According to this, regarding slaves it is possible that it is effective even though they are compared to land. And some say that the Yerushalmi forbids it rabbinically, but from the Torah, ye'ush is not effective [Tosafot Sukkah 30b]. And there is one who says that in truth the Yerushalmi disagrees with our Talmud, and the halacha is like our Talmud [Hagahot Maimoniyot ibid.]. According to this, also regarding slaves ye'ush is not effective. But according to the first resolution, ye'ush is effective for slaves if the gazlan sold or gave them to another, for there is ye'ush and change of domain. And even though the Gemara equates lands to slaves and documents that they cannot be stolen [Bava Kamma 117b], this is regarding the fact that they always remain in the possession of the owners when they are damaged or improved, and he always says to the victim of the theft, "Behold, yours is before you" (and with this, what Tosafot wrote in Bava Metzia 61a s.v. "ela" is settled). But when he despaired and sold it to another, there is a distinction between them, for land does not move from its place, unlike slaves and documents. And so it appears primary according to the opinion of the Rambam, for there are several proofs that ye'ush is effective for slaves, and so wrote the Ra'avad in chapter 9 of Gezeilah. Therefore, what the Rambam did not write—that slaves and documents also cannot be stolen—is settled, for the Gemara only equates them to lands in that when they change for the worse he says to him "Behold, yours is before you." And the Rambam wrote this law regarding slaves in chapter 3 of Gezeilah, as has been explained in siman 363. And regarding documents, this change is not applicable, and if they were completely lost he is liable by the laws of garmi, as has been explained in siman 386. And there is no practical difference except regarding an oath, that he does not need to pay the principal, the fifth, and the guilt offering, and the Rambam wrote it in chapter 8 of Gezeilah (the difficulty of the Ra'avad, of blessed memory, is settled). Also, this fact that ye'ush is not effective for land is when a gazlan took it and he cannot remove him through the power of the courts; but when he can remove him through the courts and did not rescue it, such ye'ush is effective, for it is like complete hefker, and hefker is effective for land (see Magid Mishneh 5). And so, if he is afraid of the gazlan that he might kill him and gives him land, the land belongs to the gazlan, for because of his duress he resolved and transferred ownership (and what is written regarding the sikarikon and in Gittin 58b is settled, and so wrote the Ketzot HaChoshen, and according to what I have written, the difficulty of the Netivot HaMishpat is settled; and examine it).
כתב הרמב"ם בפ"ח קרקע אינה נגזלת לעולם אלא ברשות בעליה עומדת אפילו נמכרה לאלף זה אחר זה ונתייאשו הבעלים הרי זו חוזרת לנגזל בלא דמים וכל מי שיצאה מת"י חוזר על זה שמכרה לו וחוזר המוכר השני על המוכר הראשון עד שיחזיר הלוקח מהגזלן על הגזלן ויטול ממנו עכ"ל ויש מרבותינו דס"ל דאע"ג דאינה נגזלת מ"מ יאוש יש בקרקע וכן מפורש בירושלמי [תוס' ב"ב מד.] והרמב"ם ז"ל אפשר דס"ל דודאי לענין מילתא דאיסורא מועיל יאוש ולא לענין קנין דאין כאן שינוי רשות שהרי עומדת על מקומה ולפ"ז בעבדים יכול להיות דמועיל אע"ג דאיתקש לקרקע וי"א דהירושלמי אוסר מדרבנן אבל מן התורה אינו מועיל יאוש [תוס' סוכה ל:] ויש מי שאומר דבאמת הירושלמי חולק אש"ס דילן והלכתא כש"ס דילן [הגה"מ שם] ולפ"ז גם בעבדים אינו מועיל יאוש אבל לתירוץ ראשון מועיל יאוש בעבדים אם מכרו או נתנו הגזלן לאחר דאיכא יאוש ושינוי רשות ואף על גב דבגמ' משוה קרקעות לעבדים ושטרות דאין נגזלות [ב"ק קיז:] זהו לענין דלעולם ברשות בעלים קיימי כשנתקלקלו או נשתבחו ותמיד אומר להנגזל הרי שלך לפניך (ובזה א"ש מ'ש התוס' בב"מ סא. ד"ה אלא) אבל כשנתייאש ומכרו לאחר יש חילוק ביניהם דקרקע אינה זזה ממקומה ולא עבדים ושטרות וכן נראה עיקר לדעת הרמב"ם דיש כמה ראיות דמועיל יאוש לעבדים וכ"כ הראב"ד פ"ט מגזילה ולכן א"ש מה שלא כתב הרמב"ם דגם עבדים ושטרות אינם נגזלים דבגמ' משוי להו לקרקעות דלא משוה להו אלא דכשנשתנו לגריעותא אומר לו הרי שלך לפניך ודין זה כתב הרמב"ם בעבדים בפ"ג מגזילה וכמ"ש בסי' שס"ג ובשטרות לא שייך שינוי זה ואם אבדו לגמרי חייב מדיני דגרמי כמ"ש בסי' שפ"ו ואין נ"מ רק לענין שבועה שא"צ לשלם קרן וחומש ואשם וכתבה הרמב"ם בפ"ח מגזילה (מיושב קושית הראב'ד ז"ל) וגם זה שיאוש אינו מועיל בקרקע זהו כשלקחו גזלן ואינו יכול להוציא בכח הערכאות אבל כשיכול להוציא ע"י ערכאות ולא הציל יאוש כזה מועיל דהוי כהפקר גמור והפקר מועיל בקרקע (עמ"ק ה') וכן אם מתיירא מהגזלן שלא יהרגנו ונותן לו קרקע הוי הקרקע של הגזלן דמשום אונסו גמר ומקני (וא"ש מ"ש מסיקריקון ומגיטין נ"ח: וכ"כ בקצה"ח ולפמ"ש א'ש קושית הנתיבות משפט ודוק):