ספר המדות A House / Part II · ח
Sefer HaMiddot 372
ח. סְגֻלָּה כְּשֶׁנִּכְנָס לְבַיִת חָדָשׁ לָגוּר, יַכְנִיס לְשָׁם חֶרֶב אוֹ סַכִּין אוֹ שְׁאָר כְּלֵי־זַיִן. וְסִימָן לַדָּבָר: בְּחָכְמָה יִבָּנֶה בַּיִת – כְּ'לֵי חָ'מָס מְ'כֵרוֹתֵיהֶם; חַרְבוֹתֵיהֶם, מְגוּרוֹתֵיהֶם.
8. It is a segulah (auspicious),when one moves into a new house to live, to bring in a sword, knife, or other weapon. A sign for this: "With wisdom the house will be built. (Mishlei -- Proverbs 24:3)" "Wisdom" is the acronym for the passage, "Extorted trade are their weapons.” (Bereshit 49:5)." The word "their trade" from this passage shares two definitions, "their swords" and "their dwellings" (as both variations are explained in Rashi there, t.n.).