The Messenger of Allah ﷺ decreed the right to buy the neighboring property applicable to everything which is not divided, but when boundaries are fixed and separate roads made, there is no option. (Using translation from Abū Dāʾūd 3514)
إِنَّمَا جَعَلَ رَسُولُ اللهِ ﷺ الشُّفْعَةَ فِي كُلِّ مَالٍ لَمْ يُقْسَمْ فَإِذَا وَقَعَتِ الْحُدُودُ وَصُرِّفَتِ الطُّرُقُ فَلَا شُفْعَةَ