Sunan Ibn Majah Book 16, Hadith 31
“The Messenger of Allah (ﷺ) said: 'Whoever cultivates people`s land without their permission, he has no right to any produce, but he should be recompensed for his expenditure.' ”
We used to give land in return for food at the time of the Messenger of Allah (ﷺ), and some of my paternal uncles came to them and said: “The Messenger of Allah (ﷺ) said: 'Whoever has land, he should not rent it out for a set amount of food.”
the Messenger of Allah (ﷺ) entered into a contract with the people of Khaibar for one half of the fruits or crops yielded.