II Chronicles 1:18 Midrash

וַיֹּ֣אמֶר שְׁלֹמֹ֗ה לִבְנ֥וֹת בַּ֙יִת֙ לְשֵׁ֣ם יְהוָ֔ה וּבַ֖יִת לְמַלְכוּתֽוֹ׃

Now Solomon purposed to build a house for the name of the LORD, and a house for his kingdom.

Read midrashic interpretation of II Chronicles 1:18: and classical rabbinic exegesis.