Precedence in leading prayer when master and slave are present in the slave's house
Chapter on Imamate and Congregational Prayer
Al-Mughni
Book of Prayer
Primary text
If the master and his slave are gathered in the slave's house, the master has precedence because he is the true owner and has authority over the slave. If the master is not present, the slave has precedence as the owner of the house. This was demonstrated when Abu Dharr was initially put forward to lead, but deferred when told to stand behind Abu Sa'id (who was a freed slave and owner of the dwelling in that instance).