Shemot / Exodus 12:22 · Sod
וּלְקַחְתֶּם אֲגֻדַּת אֵזוֹב וּטְבַלְתֶּם בַּדָּם אֲשֶׁר־בַּסַּף וְהִגַּעְתֶּם אֶל־הַמַּשְׁקוֹף וְאֶל־שְׁתֵּי הַמְּזוּזֹת מִן־הַדָּם אֲשֶׁר בַּסָּף וְאַתֶּם לֹא תֵצְאוּ אִישׁ מִפֶּתַח־בֵּיתוֹ עַד־בֹּקֶר׃
And you shall take a bunch of hyssop and dip it in the blood that is in the basin, and touch the lintel and the two doorposts with the blood that is in the basin. And none of you shall go out of the door of his house until morning.
Sod סוֹד
You inside, I outside
When it is dangerous outside, a host tells his guest: "stay inside, I will keep watch at the door." The Zohar hears just this in the command not to leave the house on the night of the plague.
The Zohar: Rabbi Abba says that the Holy One, blessed is He, has pity on His children in many places. A person builds a house, and the Eternal says: write My Name at the entrance, you sit inside, and I will sit outside and guard you. So too here: mark the sign of My faith on the entrance, sit in the house, and I guard you outside.
How Zohar explain it
Zohar
Rabbi Abba said: in many places the Holy One, blessed is He, has pity on His children. A person makes a house, and the Holy One, blessed is He, says to him: write My Name and set it at your entrance, and you sit inside the house, and I will sit outside at your entrance to guard you.
And here He said: mark on the entrance the secret of My faith, and you sit inside your house, and I guard you outside, as it is written: "and none of you shall go out of the door of his house until morning." And it is written: "and He will see the blood on the lintel and on the two doorposts, and the Eternal will pass over the door and will not let the destroyer come into your houses to strike."
Takeaway
"Write My Name at the entrance" is the mezuzah: "and you shall write them on the doorposts (מְזֻזוֹת) of your house and on your gates" (Devarim / Deuteronomy 6:9). It is the same word "doorposts" as in our verse.
"And the Eternal will pass over (וּפָסַח) the door" (Shemot / Exodus 12:23): from this word comes the name of the festival Pesach (פֶּסַח).
Rabbi Abba in the Zohar is a disciple of Rabbi Shimon bar Yochai.