The Prophet ﷺ said: If anyone brings barren land into cultivation, it belong to him. He then transmitted a similar tradition mentioned above (No. 3067). He ('Urwah) said: One who transmitted this tradition to me said that two persons brought their dispute to the Messenger of Allah ﷺ. One of them grew palm trees in the land of the other. He decided to return the land to its owner of the palm-trees to remove his palm-trees. He said: I saw when their roots were being struck with axes. The trees were fully grown up, but they were removed from there.
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ مَنْ أَحْيَا أَرْضًا مَيْتَةً فَهِيَ لَهُ وَذَكَرَ مِثْلَهُ قَالَ فَلَقَدْ خَبَّرَنِي الَّذِي حَدَّثَنِي هَذَا الْحَدِيثَ أَنَّ رَجُلَيْنِ اخْتَصَمَا إِلَى رَسُولِ اللَّهِ ﷺ غَرَسَ أَحَدُهُمَا نَخْلاً فِي أَرْضِ الآخَرِ فَقَضَى لِصَاحِبِ الأَرْضِ بِأَرْضِهِ وَأَمَرَ صَاحِبَ النَّخْلِ أَنْ يُخْرِجَ نَخْلَهُ مِنْهَا قَالَ فَلَقَدْ رَأَيْتُهَا وَإِنَّهَا لَتُضْرَبُ أُصُولُهَا بِالْفُئُوسِ وَإِنَّهَا لَنَخْلٌ عُمٌّ حَتَّى أُخْرِجَتْ مِنْهَا