Mishkat al-Masabih
Rafi‘ b. Khadij said: We had most agricultural land in Medina, and a man would let out his land on condition that he should have what was produced in one portion and the man to whom it was let out should have what was produced in another; but sometimes one portion produced a crop while the other did not, so the Prophet (ﷺ) forbade them to do that. (Bukhari and Muslim.)
وَعَن رَافِعِ بْنِ خَدِيجٍ قَالَ: كُنَّا أَكْثَرَ أَهْلِ الْمَدِينَةِ حَقْلًا وَكَانَ أَحَدُنَا يُكْرِي أَرْضَهُ فَيَقُولُ: هَذِهِ الْقِطْعَةُ لِي وَهَذِهِ لَكَ فَرُبَّمَا أَخْرَجَتْ ذِهِ وَلَمْ تُخْرِجْ ذِهِ فَنَهَاهُمُ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ
Reference