Ali ibn al-Hasan narrated that, from Ahmad ibn Sabih, from Ali ibn Imran, from Abu Abdillah Imam Ja’far عليه السلام from his father, Imam al-Baqir عليه السلام, peace be upon them both:
Imam عليه السلام said: “The one observing seclusion for worship (al-mutakif) observes seclusion for worship (yatakif) in the congregational mosque.”
Ali Akbar al-Ghaffari
Tahdhīb al-Aḥkām fī Sharḥ al-Muqniʿah, vol. 4, p. 362