The Prophet (ﷺ) said: If anyone brings barren land into cultivation, it belongs to him, and the unjust vein has no right.
Sunan Abi Dawud Book 20, Hadith 146