Parashas Metzora · Passuk 14:35
Chabad.org — English translation + Rashi
Torah Temima points to Yoma 12a (verified on the daf).
E-Daf.com — Tsurras Hadaf (size=3)
HebrewBooks / Shas PDF of the daf
English: “To whom the house belongs” — it was taught: One might think that synagogues and study halls [that contain no dwelling] become tamei through negaim; therefore the verse says “to whom the house belongs” — one to whom it is uniquely his; these that are not uniquely his are excluded.
Exclusion of non-residential communal buildings
Chazal exclude pure synagogues and batei midrash that lack residential use from the laws of house-negaim.