The Messenger of Allah ﷺ said, "The neighbor has the greater right to the pre-emption of his neighbor's property. He is to be waited for even if he is absent, when their path is one."
حدثنا أحمد بن حنبل حدثنا هشيم أخبرنا عبد الملك عن عطاء
قال رسول الله ﷺ الجار أحق بشفعة جاره ينتظر بها وإن كان غائبا إذا كان طريقهما واحدا
[Its isnad is hasan]. Ibn Majah narrated it in the chapter on preemption by neighboring right in the Book of Preemption, no. 3494, from the hadith of Hushaym with this wording. It is also in Musnad Ahmad, 3/303, and Tirmidhi said, no. 1369, hasan gharib.