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

Sunan Abu Dawud Book 20 Hadith 150

Sunan Abu Dawud #3077

Tribute, Spoils, and Rulership (Kitab Al-Kharaj, Wal-Fai' Wal-Imarah) 20:150

Narrated Samurah:

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

Chapter: Reviving Dead Land

Grade: Da'if (Al-Albani)