The Messenger of Allah ﷺ addressed us in a sermon and said, "Whoever owns land should cultivate it himself or have it cultivated, and should not rent it out."
أخبرنا عيسى بن محمد وهو أبو عمير بن النحاس وعيسى بن يونس هو الفاخوري قالا حدثنا ضمرة عن ابن شوذب عن مطر عن عطاء
خطبنا رسول الله ﷺ فقال من كانت له أرض فليزرعها أو ليزرعها ولا يؤاجرها
Sourced from Muslim, hadith 88/1536, see the previous hadith transmitted through Matar bin Tahman al-Warraq, and it is in Kubra, hadith 4604. Ataa is Ibn Abu Rabah al-Makki, Ibn Shawdhab is Abdullah, and Damra is Ibn Rabia.