Sunan Abi Dawud, Book 20, Hadith 150 (Abu Dawud 3078)

Narrated Samurah:

The Prophet (ﷺ) said: If anyone surrounds a land with a wall, it belongs to him.