The Laws › Commandment #163
Commandment #163 · Positive · Social & Ethical Laws

Who Has Built a New House and Has Not Dedicated It: Chanukkat HaBayit

חֲנֻכַּת הַבַּיִת
Source: Deuteronomy 20:5  ·  Maimonides, Sefer HaMitzvot, Positive #11

Deuteronomy 20:5 appears inside the rules of warfare, but its logic generates a positive commandment: a man exempted from battle because he has 'built a new house and has not dedicated it' (Deuteronomy 20:5) is implicitly required to perform that dedication. The concern — 'lest he die in the battle and another man dedicate it' — makes dedication a threshold event that belongs specifically to the builder. Psalm 30:1's title 'at the dedication of the house of David' and the traditional mezuzah ceremony both flow from this commandment.

Who Has Built a New House and Has Not Dedicated It

וְדִבְּרוּ הַשֹּׁטְרִים אֶל הָעָם לֵאמֹר מִי הָאִישׁ אֲשֶׁר בָּנָה בַיִת חָדָשׁ וְלֹא חֲנָכוֹ יֵלֵךְ וְיָשֹׁב לְבֵיתוֹ פֶּן יָמוּת בַּמִּלְחָמָה וְאִישׁ אַחֵר יַחְנְכֶנּוּ
"Then the officers shall speak to the people, saying, 'Is there any man who has built a new house and has not dedicated it? Let him go back to his house, lest he die in the battle and another man dedicate it.'"

Deuteronomy 20:5 appears in the section on rules of warfare. Before battle, officers are to exempt from service anyone who has built a new house but not yet dedicated it. The exemption itself implies the positive commandment: if a man must stay home to dedicate his house, then dedication is an obligation — not an optional celebration. Maimonides counts chanukkat habayit (Positive Commandment #11 in some enumerations) as a positive duty flowing from this very exemption.

The phrase 'lest he die in the battle and another man dedicate it' is poignant: it is not only that the man himself would miss the dedication, but that the dedication would belong to someone else. The new house represents a threshold — a moment when a household formally enters a new phase of life — and that threshold must be crossed by the one who built it, in an act of consecration, before ordinary life in the house begins.

A Psalm and Song at the Dedication of the House

מִזְמוֹר שִׁיר חֲנֻכַּת הַבַּיִת לְדָוִד
"A Psalm and Song at the dedication of the house of David."

Psalm 30's superscription — 'A Psalm and Song at the dedication of the house of David' — preserves a real occasion: the dedication of a royal dwelling. The psalm moves from crisis to deliverance: 'I will extol you, O LORD, for you have drawn me up and have not let my foes rejoice over me' (Psalm 30:2). Its use at the dedication of a house sets the tone for what chanukkat habayit should be: an acknowledgment that the house and the life lived in it depend on God's protection, not merely the builder's skill.

The tradition of affixing a mezuzah at a housewarming flows directly from this commandment. Deuteronomy 6:9's command to 'write them on the doorposts of your house' (Deuteronomy 6:9) is fulfilled as the mezuzah is placed — and the placement itself is the act of dedication, marking the doorposts with the confession of God's unity as the household crosses the threshold of its new home.

Key Figures

*
Solomon
Solomon's dedication of the Temple (1 Kings 8:54) is the paradigm dedication: 'when Solomon had finished offering all this prayer and plea to the LORD, he arose from before the altar of the LORD, where he had knelt with hands outstretched toward heaven.' The Temple dedication is chanukkat habayit raised to its highest order — a house built for God's own dwelling, consecrated with prayer.
+
Nehemiah
Nehemiah 12:27 records the dedication of the rebuilt walls of Jerusalem: 'And at the dedication of the wall of Jerusalem they sought the Levites in all their places, to bring them to Jerusalem to celebrate the dedication with gladness, with thanksgivings and with singing, with cymbals, harps, and lyres.' The dedication of a defensive wall, like a house, is a sacred threshold moment — requiring ceremony, music, and communal acknowledgment of God's gift.

Study Questions

For reflection and group study
Why does Deuteronomy 20:5's war-exemption clause generate a positive commandment to dedicate a new house?
What does the phrase 'lest he die in the battle and another man dedicate it' suggest about the personal and unrepeatable character of a house dedication?
How does Psalm 30's movement from crisis to deliverance make it appropriate for a house dedication ceremony?
How does the placement of a mezuzah fulfil the chanukkat habayit commandment, and what does Deuteronomy 6:9 add to the logic of house dedication?
How does Solomon's Temple dedication in 1 Kings 8 serve as the paradigm for all smaller house-dedication ceremonies?

Read the full passage on the new house in the Torah reader.

Open Deuteronomy 20 in the Bible Reader