“I heard Ibn 'Umar say: 'We used to lend land for cultivation in return for a share of the harvest, and we did not see anything wrong with that, until we heard Rafi' bin Khadij say: “The Messenger of Allah (ﷺ) forbade it.” Then we stopped because of what he said.' ”
Sunan Ibn Majah Book 16, Hadith 15