Chroniques 2 8:11 Halakha : Mishneh Torah, Prayer and the Priestly Blessing

וְאֶת־בַּת־פַּרְעֹ֗ה הֶעֱלָ֤ה שְׁלֹמֹה֙ מֵעִ֣יר דָּוִ֔יד לַבַּ֖יִת אֲשֶׁ֣ר בָּֽנָה־לָ֑הּ כִּ֣י אָמַ֗ר לֹא־תֵשֵׁ֨ב אִשָּׁ֥ה לִי֙ בְּבֵית֙ דָּוִ֣יד מֶֽלֶךְ־יִשְׂרָאֵ֔ל כִּי־קֹ֣דֶשׁ הֵ֔מָּה אֲשֶׁר־בָּֽאָ֥ה אֲלֵיהֶ֖ם אֲר֥וֹן יְהוָֽה׃ (פ)

Quant à la fille de Pharaon, Salomon lui fit quitter la Cité de David pour l’installer dans la demeure qu’il lui avait construite, "car, disait-il, je ne dois pas laisser résider une femme dans les demeures de David, roi d’Israël, devenues sacrées depuis que l’arche du Seigneur y a été transférée".

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.