Narrated Jabir bin ‘Abdullah :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
Hadith No. 3514
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Sahih Bukhari (6976)