Hanzalah bin Qays asked Rafi' bin Khadij (may Allah be pleased with him) about renting out land, and he said: The Messenger of Allah (peace and blessings be upon him) "forbade renting out land in return for its produce." Hanzalah said: I asked about giving it out for gold and silver, and Rafi' (may Allah be pleased with him) said: There is no harm in it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب المزارعة / 11719