Renting out something for a known period in return for a specified payment is permissible. One form of this is renting out land. Renting out land in return for half of the produce is not permissible.
It is narrated from Rafi’ ibn Khadij (may Allah be pleased with him) that we had more land than the other people of Madinah. Our practice was that when we rented out land in return for produce, we would stipulate that the produce of this portion would be mine and the produce of that portion would be yours. Then it would sometimes happen that one portion yielded abundantly and the other did not, so the Prophet ﷺ forbade people from dealing in this way.
And in the narration of Sahih Muslim and others, these are the words:
فأما شيئ معلوم مضمون فلا بأس به
“Yes, if it is a specified thing that can be guaranteed, then there is no harm in it.”
[Bukhari: 2332, Kitab al-Hars wa al-Muzara’a: Chapter on what is disliked of stipulations in sharecropping; Muslim: 1183, Kitab al-Buyu’: Chapter on renting land for gold and silver]
As is in Sahih al-Bukhari, that the Messenger of Allah ﷺ made an agreement with the people of Khaybar for half of the produce.
[Bukhari: 2285, Kitab al-Ijara: Chapter on when one hires land and one of the two dies; Muslim: 2896; Tirmidhi: 1304; Abu Dawud: 2959]
On the one hand, there is a prohibition in the hadith on renting out land in absolute terms.
نهي عن كراء الارض
“He ﷺ forbade renting out land.”
[Muslim: 1547, Kitab al-Buyu’: Chapter on renting land for gold and silver]
And on the other hand, it is also established that the Companions (may Allah be pleased with them) used to practise this.
[Bukhari: 2332, Kitab al-Hars wa al-Muzara’a: Chapter on what is disliked of stipulations in sharecropping]
Even the Messenger of Allah ﷺ himself had made an agreement with the people of Khaybar regarding land for half of the produce, as is in the hadith:
ولهم شطر ما يخرج منها
[Bukhari: 2285]
The reconciliation given between these hadiths is that renting out land in return for half of the produce, or more or less than that, or in return for something else, is permissible, as was the practice of the Prophet ﷺ. The hadiths of prohibition are to be understood in light of the hadith of Rafi’ ibn Khadij (may Allah be pleased with him), in which he says:
كنا أكثر الأنصار حقلا قال كنا نكرى الأرض على أن لنا هذه ولهم هذه فربما أخرجت هذه ولم تخرج هذه فنهانا عن ذلك وأما بالورق فلم ينهنا
“We had more fields than all of the Ansar, so we used to rent out land saying that we would take the produce of this part and the produce of that part would be yours. Then sometimes this part would yield abundantly and that part would not, so the Messenger of Allah ﷺ forbade that. However, he did not forbid renting it out in return for silver.”
[Bukhari: 2332, Kitab al-Hars wa al-Muzara’a: Chapter on what is disliked of stipulations in sharecropping; Muslim: 1183, Kitab al-Buyu’: Chapter on renting land for gold and silver]
It is thus known that the prohibition on renting out land concerns the specification of a particular plot of land, not renting in return for a known benefit (for example, a specified produce, silver or cash).