Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) said that the Messenger of Allah (peace and blessings be upon him) said: "Makkah is a resting place for camels, so its dwellings are not to be sold, nor are its houses to be rented out."
Isma'il bin Ibrahim bin Muhajir is da'if (weak) and his father is not strong. There is disagreement over him: it is narrated from him in this way, and it is also narrated from him, from his father, from Mujahid, from Abdullah bin Amr as marfu' (attributed to the Prophet) with part of its meaning.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11183