וְאֶת־בַּת־פַּרְעֹ֗ה הֶעֱלָ֤ה שְׁלֹמֹה֙ מֵעִ֣יר דָּוִ֔יד לַבַּ֖יִת אֲשֶׁ֣ר בָּֽנָה־לָ֑הּ כִּ֣י אָמַ֗ר לֹא־תֵשֵׁ֨ב אִשָּׁ֥ה לִי֙ בְּבֵית֙ דָּוִ֣יד מֶֽלֶךְ־יִשְׂרָאֵ֔ל כִּי־קֹ֣דֶשׁ הֵ֔מָּה אֲשֶׁר־בָּֽאָ֥ה אֲלֵיהֶ֖ם אֲר֥וֹן יְהוָֽה׃ (פ)
E Salomão levou a filha do Faraó da cidade de Davi para a casa que lhe edificara; pois disse: Minha mulher não morará na casa de Davi, rei de Israel, porquanto os lugares nos quais entrou a arca do SENHOR são santos.
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.