Al-Husayn ibn Said, from Fadalah ibn Ayyub, from Abdullah ibn Sinan, who said:
Imam عليه السلام said: “The one observing seclusion for worship (al-mutakif) in Mecca may pray in whichever of its houses he wishes; it is the same for him whether he prays in the mosque or in its houses.”
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 4, p. 365