Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:2722Mālik b. Ismāʿīl > Ibn ʿUyaynah > Yaḥyá b. Saʿīd > Ḥanẓalah al-Zuraqī > Rāfiʿ b. Khadīj

We used to work on the fields more than the other Ansar, and we used to rent the land (for the yield of a specific portion of it). But sometimes that portion or the rest of the land did not give any yield, so we were forbidden (by the Prophet ﷺ ) to follow such a system, but we were allowed to rent the land for money.  

البخاري:٢٧٢٢حَدَّثَنَا مَالِكُ بْنُ إِسْمَاعِيلَ حَدَّثَنَا ابْنُ عُيَيْنَةَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ قَالَ سَمِعْتُ حَنْظَلَةَ الزُّرَقِيَّ قَالَ سَمِعْتُ رَافِعَ بْنَ خَدِيجٍ ؓ يَقُولُ كُنَّا أَكْثَرَ الأَنْصَارِ حَقْلاً فَكُنَّا نُكْرِي الأَرْضَ فَرُبَّمَا أَخْرَجَتْ هَذِهِ وَلَمْ تُخْرِجْ ذِهِ فَنُهِينَا عَنْ ذَلِكَ وَلَمْ نُنْهَ

عَنِ الْوَرِقِ