Sunan Abi Dawud, Book 20, Hadith 146 (Abu Dawud 3074)

Narrated Sa'id ibn Zayd:

The Prophet (ﷺ) said: If anyone brings barren land into cultivation, it belongs to him, and the unjust vein has no right.