It is narrated from Sayyiduna Ubadah bin Samit (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) decreed the right of pre-emption among partners in land and houses.