Vayikra13:46

כָּל־יְמֵי אֲשֶׁר הַנֶּגַע בּוֹ יִטְמָא טָמֵא הוּא בָּדָד יֵשֵׁב מִחוּץ לַמַּחֲנֶה מוֹשָׁבוֹ׃

All the days that the affliction is on him he shall be impure, he is impure. He shall dwell alone, his dwelling shall be outside the camp.

Vayikra 13:46

כָּל־יְמֵי אֲשֶׁר הַנֶּגַע

Vayikra / Leviticus 13:46 · Sod

Vayikra 13:46

כָּל־יְמֵי אֲשֶׁר הַנֶּגַע בּוֹ יִטְמָא טָמֵא הוּא בָּדָד יֵשֵׁב מִחוּץ לַמַּחֲנֶה מוֹשָׁבוֹ׃

All the days that the affliction is on him he shall be impure, he is impure. He shall dwell alone, his dwelling shall be outside the camp.

Sod סוֹד

A word that makes peace

One word can cause a quarrel, and another can make peace. The sages said that in the higher worlds too people's words do the same.

Tikkunei Zohar: the word "alone" (בָּדָד) equals ten in the numerical value of the letters, like the ten weekday shells (קְלִיפּוֹת). So at Havdalah one separates the holy from the weekday. Rabbi Nachman of Breslov: the leper separated people, and the repair is the word (תֵּבָה) of prayer, which makes peace in all the worlds. So prayer ends with peace.

How Tikkunei Zohar and Likutei Moharan explain it

Tikkunei Zohar He shall dwell alone (בָּדָד)

At the time when the ten sefirot (סְפִירוֹת), the higher attributes, are clothed in these shells (קְלִיפּוֹת), those who know the shells adjure these shells by the names and essences of the Holy One, blessed is He, and annul a decree. And of these shells they said that Havdalah (הַבְדָּלָה) is needed, for the Holy One, blessed is He, is clothed in them on weekdays, and on Shabbat He takes them off and is clothed in holy garments. And the holy garments are ten, of them it says: "The Eternal alone (בָּדָד) leads him, and there is no foreign god with Him" (Devarim / Deuteronomy 32:12). בָּדָד is ten, by the number of the ten weekday shells. When He is clothed in them, it says: "he shall dwell alone (בָּדָד), his dwelling shall be outside the camp". In that shell in which a person causes the Name of the Eternal to be clothed, He takes vengeance. So it says: "You shall not take the Name of the Eternal your Almighty in vain" (Shemot / Exodus 20:7). And so they set in Havdalah: "who separates between holy and weekday and between light and darkness", so as not to join the weekday shells to the holy ones and not make a mixture of them.

Likutei Moharan He shall dwell alone

This is the meaning of the verse "make nests (קִנִּים) in the ark" (Bereshit / Genesis 6:14). It says in the midrash (Bereshit Rabbah 31:9): as birds (קִנִּים) purify the leper, so your ark will purify you. The leper is "a whisperer separates close friends" (Mishlei / Proverbs 16:28): he separates a husband from his wife, and for this "he shall dwell alone" (Arakhin 16a), and birds purify him. So too "your ark" (תֵּבָה), that is, the word (תֵּבָה) of prayer, repairs strife and makes general peace, peace in all the worlds. So prayer is ended with peace.

Takeaway

Numerical value of the letters: בָּדָד = ב 2 + ד 4 + ד 4 = 10.
Shells (קְלִיפּוֹת) in Kabbalah are what hides the light of holiness, as a peel hides the fruit.
Havdalah is the blessing at the end of Shabbat that separates it from the weekdays.
תֵּבָה in Hebrew means both "ark" and "word". The main prayer (the Amidah) ends with the blessing of peace.