If I were to find deer in the territory between the two mountains, I would not molest them, and he (the Holy Prophet) declared twelve miles of suburb around Medina as a prohibited pasture. (Using translation from Muslim 1372b)
حَرَّمَ رَسُولُ اللهِ ﷺ مَا بَيْنَ لَابَتَيْ الْمَدِينَةِ قَالَ أَبُو هُرَيْرَةَ فَلَوْ وَجَدْتُ الظِّبَاءَ مَا بَيْنَ لَابَتَيْهَا مَا ذَعَرْتُهَا وَجَعَلَ حَوْلَ الْمَدِينَةِ اثْنَيْ عَشَرَ مِيلًا حِمًى