‘Adi bin Zaid said “The Apostle of Allaah(ﷺ) declared Madeenah a protected land a mail-post(three miles) from each side. Its trees are not to be beaten off or to be cut except what is taken from the Camel.
Sunan Abi Dawud Book 11, Hadith 316