#HalachaYomi OC 153:9 If people of a village sell synagogue, buyer can use property as wishes except as bathhouse, tannery or toilet.