It was narrated from Ibn Abbas that the Prophet (ﷺ) said:
"Whoever has land and wants to sell it, let him offer it to his neighbor." (ID)
English reference (ID): Vol. 3, Book 17, Hadith 2493 (ID)
Arabic reference (ID): Book 17, Hadith 2588 (ID)