וְאֶת־בַּת־פַּרְעֹ֗ה הֶעֱלָ֤ה שְׁלֹמֹה֙ מֵעִ֣יר דָּוִ֔יד לַבַּ֖יִת אֲשֶׁ֣ר בָּֽנָה־לָ֑הּ כִּ֣י אָמַ֗ר לֹא־תֵשֵׁ֨ב אִשָּׁ֥ה לִי֙ בְּבֵית֙ דָּוִ֣יד מֶֽלֶךְ־יִשְׂרָאֵ֔ל כִּי־קֹ֣דֶשׁ הֵ֔מָּה אֲשֶׁר־בָּֽאָ֥ה אֲלֵיהֶ֖ם אֲר֥וֹן יְהוָֽה׃ (פ)
И вывел Соломон дочь фараона из города Давидова в дом, который он построил для нее; ибо он сказал:'Ни одна из моих жен не должна жить в доме Давида, царя Израильского, потому что места святы, к которым пришел ковчег Господень.'
Mishneh Torah, Prayer and the Priestly Blessing
Villagers who desire to sell their synagogue, in order to erect with the proceeds another synagogue or purchase a Tebah or a scroll of the law, should stipulate with the purchaser that he is not to turn it into a bathhouse, tannery, ritual bath or laundry. If, at the time of the sale, the seven leaders of the community (forming the Executive), at a meeting of the residents, passed a resolution that the purchaser should be permitted to do any of the above things, it is permitted.