It is narrated from Hanzalah bin Qais that he asked Rafi' bin Khadij (may Allah be pleased with him) about leasing land. He replied that the Messenger of Allah (ﷺ) forbade leasing land. Then he asked, "Is it forbidden if it is for gold and silver?" He replied, "If it is for gold and silver, then there is no harm in it."
Hadith Referenceمسند الإمام الشافعي / كتاب البيوع / 1466
Hadith Takhrijاخرجه البخارى، الحرث والمزارعة ، باب ما يكره من الشروط في المزارعة (2322)، ومسلم، البيوع، باب كراء الارض بالذهب والورق (1547)۔