It was narrated that Jabir said: “The Messenger of Allah (ﷺ) said: 'Whoever has a date-palm tree or land, should not sell it until he has offered it to his partner.' ”
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.”