Abd al-Rahman bin Farrukh said that Nafi' bin Abd al-Harith (may Allah be pleased with him) bought a prison house from Safwan bin Umayyah (may Allah be pleased with him) to give to Sayyiduna Umar (may Allah be pleased with him). If he approved of it, Nafi' (may Allah be pleased with him) would give Safwan bin Umayyah (may Allah be pleased with him) four hundred. Ibn Uyaynah (may Allah have mercy on him) said: That building is still used as a prison today. Amr bin Dinar (may Allah have mercy on him) was asked: May the houses of Makkah be rented out? He said: There is no harm in it, just as there is no harm in buying them. Sayyiduna Umar (may Allah be pleased with him) bought a house from Safwan bin Umayyah (may Allah be pleased with him) for four thousand dirhams.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب البيوع / 11180