Ibn Shihab asked Salim bin Abdullah (may Allah have mercy on him) about renting out land, and he said: There is no harm in it. I said: What is your view of the hadith of Rafi' (may Allah be pleased with him)? He said: Rafi' (may Allah be pleased with him) went too far (in this). If I had land, I would rent it out.
Imam al-Shafi'i (may Allah have mercy on him) said: It may be that Salim (may Allah have mercy on him) heard the hadith from Rafi' (may Allah be pleased with him) in general terms and thought that he narrated it about (renting for) gold and silver. Therefore he saw no harm in (renting for) gold and silver. And others besides Malik bin Anas (may Allah have mercy on him) have made clear from Rafi' (may Allah be pleased with him) that "he (peace and blessings be upon him) forbade renting out land in return for its produce."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11718