Sahih Muslim Book 10, Hadith Number 3749.

Chapter : Excellence of planting of trees and tilling of land.

Hanzala reported that he heard Rafi’ b. Khadij (Allah be pleased with him) say: We were the major agriculturists of the Ansar and so we let out land (saying): The produce of this (part of land) would be ours and (the produce) of that would be theirs. But it so happened that at times this (land) gave harvest, but the other one produced nothing. So he (the Holy Prophet) forbade this. But so far as the payment in silver (dirham, a coin) is concerned, he did not forbid.