Ibn Umar used to lease out his farmland during the lifetime of the Messenger of Allah ﷺ, and throughout the rule of Abu Bakr and Umar and Uthman, and during the early part of Muawiya's caliphate. Then, near the end of Muawiya's caliphate, he was told that Rafi bin Khadij was reporting a prohibition from the Prophet ﷺ regarding this practice. So he went to him, and I was with him, and asked him about it.Rafi replied, "The Messenger of Allah ﷺ used to forbid the leasing of farmland."After that, Ibn Umar abandoned the practice. Whenever he was asked about it later, he would say, "Rafi bin Khadij claims that the Messenger of Allah ﷺ forbade it."
أن ابن عمر كان يكري مزارعه على عهد رسول الله ﷺ، وفي إمارة أبي بكر وعمر وعثمان وصدرا من خلافة معاوية، حتى بلغه في آخر خلافة معاوية أن رافع بن خديج يحدث فيها بنهيي عن النبي ﷺ، فدخل عليه- وأنا معه-، فسأله، فقال: كان رسول الله ﷺ ينهي عن كراء المزارع، فتركها ابن عمر بعد. وكان إذا سئل عنها بعد قال: زعم رافع بن خديج أن رسول الله ﷺ نهي عنها.
Bukhari narrated it in the Book of Cultivation and Sharecropping (3343-3344), and Muslim in the Book of Sales (109:1547), both of them through the route of Ayub, from Nafi, with this wording. The wording given is Muslim's. Bukhari did not mention "and whenever he was asked... " and so on. In his version, Ibn Umar said, "I know that we used to rent out our farmland in the time of the Messenger of Allah ﷺ for whatever grew on the banks of the irrigation channels, or for a portion of the hay." This prohibition was at the beginning of the matter.