"The Messenger of Allah decreed the principle of pre-emption, and the (rights of) neighbors."

Sunan an-Nasa'i Book 44, Hadith 257