Chachmei Hamidrash relate that Rabbi Elazar taught a person should have a permanently fixed nail or peg in a cemetery so that he might merit being buried in that place; the passage also describes a grave made like a dovecote with the burial placed upon it.
גּוּפָא אִם הַכֹּהֵן הַמָּשִׁיחַ וגו', זֶה שֶׁבְנָא, דִּכְתִיב בֵּיהּ (ישעיה כב, טו): לֶךְ בֹּא אֶל הַסֹּכֵן וגו', אָמַר רַבִּי אֶלְעָזָר כֹּהֵן גָּדוֹל הָיָה, רַבִּי יְהוּדָה אוֹמֵר אֲמַרְכָּל הָיָה. עַל דַּעְתֵּיהּ דְּרַבִּי אֶלְעָזָר דְּאָמַר כֹּהֵן גָּדוֹל הָיָה, (ישעיה כב, כא): וְהִלְבַּשְׁתִּיו כֻּתָּנְתֶּךָ. עַל דַּעְתֵּיהּ דְּרַבִּי יְהוּדָה בְּרַבִּי דַּהֲוָה אָמַר אֲמַרְכָּל הָיָה (ישעיה כב, כא): וּמֶמְשַׁלְתְּךָ אֶתֵּן בְּיָדוֹ. תָּנֵי רַבִּי חִיָּא לָמָּה הוּא קוֹרֵא אוֹתוֹ אֲמַרְכָּל, שֶׁהָיָה מַר לַכֹּל. אָמַר רַבִּי בֶּרֶכְיָה מִן הֲדָא סִכְנִין הֲוָה, וְעָלָה וְנִתְמַנָּה קוֹמִיס אִיסְפִּיסְרִיאָן בְּבֵית הַמִּקְדָּשׁ, הוּא שֶׁהַנָּבִיא מְקַנְתְּרוֹ וְאוֹמֵר (ישעיה כב, טז): מַה לְּךָ פֹה וּמִי לְךָ פֹה כִּי חָצַבְתָּ לְךָ פֹּה קָבֶר, אָמַר לוֹ גָּלוֹיֵי בַּר גָּלוֹיֵי אֵיזֶה כֹּתֶל בָּנִיתָ כָּאן, אֵיזֶה עַמּוּד הֶעֱמַדְתָּ כָּאן, אֲפִלּוּ אֵיזֶה מַסְמֵר קָבַעְתָּ כָּאן. מִכָּאן אָמַר רַבִּי אֶלְעָזָר צָרִיךְ אָדָם שֶׁיִּהְיֶה לוֹ מַסְמֵר אוֹ יָתֵד קָבוּעַ בְּבֵית הַקְּבָרוֹת, כְּדֵי שֶׁיִּזְכֶּה וְיִקָּבֵר בְּאוֹתוֹ מָקוֹם. כִּי חָצַבְתָּ לְךָ פֹּה קָבֶר, עֲשָׂאוֹ כְּמִין שׁוֹבָךְ וְנָתַן קִבְרוֹ עָלָיו. (ישעיה כב, טז): חֹצְבִי מָרוֹם קִבְרוֹ, רַבִּי שְׁמוּאֵל בְּשֵׁם מַר עוּקְבָן אָמַר, מִמָּרוֹם נֶחְצַב עָלָיו שֶׁלֹּא תִהְיֶה לוֹ קְבוּרָה בְּאֶרֶץ יִשְׂרָאֵל, (ישעיה כב, טז): חֹקְקִי בַּסֶּלַע מִשְׁכָּן לוֹ. (ישעיה כב, יז): הִנֵּה ה' מְטַלְטֶלְךָ טַלְטֵלָה גָּבֶר, טִלְטוּל אַחַר טִלְטוּל, אָמַר רַבִּי שְׁמוּאֵל בַּר נַחְמָן כְּהָדֵין תַּרְנְגוֹלָא דַּהֲוָה גָּלֵה וְאָזַל מִן אֲתַר לַאֲתַר, (ישעיה כב, יז): וְעֹטְךָ עָטֹה, שֶׁלָּקָה בְּצָרַעַת, כְּמָה דְתֵימָא (ויקרא יג, מה): וְעַל שָׂפָם יַעְטֶה. (ישעיה כב, יח): צָנוֹף יִצְנָפְךָ צְנֵפָה, גָּלוּת בָּתַר גָּלוּת. (ישעיה כב, יח): כַּדּוּר, מָה הַכַּדּוּר הַזֶּה שֶׁמִּתְלַקֵּט בַּיָּדַיִם וְאֵין מַגִּיעַ לָאָרֶץ כָּךְ הוּא, (ישעיה כב, יח): אֶל אֶרֶץ רַחֲבַת יָדָיִם, זוֹ (עזרא ח, יז): כָסִפְיָא. (ישעיה כב, יח): שָׁמָּה תָמוּת וְשָׁמָּה מַרְכְּבוֹת כְּבוֹדֶךָ, עַל דַּעְתֵּיהּ דְּרַבִּי אֶלְעָזָר דַּהֲוָה אָמַר כֹּהֵן גָּדוֹל הָיָה, שֶׁהָיָה נֶהֱנֶה מִן הַקָּרְבָּנוֹת. עַל דַּעְתֵּיהּ דְּרַבִּי יְהוּדָה בְּרַבִּי דְּהוּא אָמַר אֲמַרְכָּל הָיָה, שֶׁהָיָה נֶהֱנֶה מִן הַהֶקְדֵּשׁוֹת. (ישעיה כב, יח): קְלוֹן בֵּית אֲדֹנֶיךָ, עַל דַּעְתֵּיהּ דְּרַבִּי אֶלְעָזָר שֶׁהָיָה כֹּהֵן גָּדוֹל, שֶׁהָיָה מְבַזֶּה אֶת הַקָּרְבָּנוֹת, עַל דַּעְתֵּיהּ דְּרַבִּי יְהוּדָה בְּרַבִּי שֶׁאָמַר אֲמַרְכָּל הָיָה, שֶׁהָיָה מְבַזֶּה אֶת שְׁנֵי אֲדוֹנָיו, וְאֵיזֶה זֶה יְשַׁעְיָהוּ וְחִזְקִיָּהוּ. רַבִּי בֶּרֶכְיָה בְּשֵׁם רַבִּי אַבָּא בַּר כַּהֲנָא אָמַר מֶה עָשׂוּ שֶׁבְנָא וְיוֹאָח, נָטְלוּ אִגֶּרֶת וּכְתָבוּהָ וּתְחָבוּהָ בְּחֵץ וְהוֹשִׁיטוּהָ בְּעַד הַחַלּוֹן וּנְתָנוּהָ לְסַנְחֵרִיב, מַה כָּתְבוּ בָהּ אָנוּ וְכָל בְּנֵי יִשְׂרָאֵל מְבַקְּשִׁים לְהַשְּׁלִים לָךְ, יְשַׁעְיָה וְחִזְקִיָּה אֵין מְבַקְּשִׁים לְהַשְּׁלִים לָךְ. וְהוּא שֶׁצָּפָה דָּוִד בְּרוּחַ הַקֹּדֶשׁ וְאָמַר (תהלים יא, ב): כִּי הִנֵּה הָרְשָׁעִים יִדְרְכוּן קֶשֶׁת, זֶה שֶׁבְנָא וְיוֹאָח, (תהלים יא, ב): כּוֹנְנוּ חִצָּם עַל יֶתֶר, עַל מָתְחֵי גִירָא. (תהלים יא, ב): לִירוֹת בְּמוֹ אֹפֶל לְיִשְׁרֵי לֵב, לִשְׁנֵי יִשְׁרֵי לֵב, וְאֵיזֶה זֶה יְשַׁעְיָה וְחִזְקִיָּה.
Regarding the matter itself: “If the anointed priest [shall sin so that he brings guilt on the people]” – this is Shevna, in whose regard it is written: “Go, come to this official [hasokhen], [to Shevna, who is over the house]” (Isaiah 22:15). Rabbi Elazar said: ‘He was the High Priest.’ Rabbi Yehuda said: ‘He was the overseer [amarkal].’ In accordance with the opinion of Rabbi Elazar, who said he was the High Priest: “I will garb him in your tunic” (Isaiah 22:21). In accordance with the opinion of Rabbi Elazar, who said he was the overseer: “I will deliver your authority into his hand” (Isaiah 22:21). Rabbi Ḥiyya taught: Why does he call him amarkal? Because he was the master of it all [mar lakol]. Rabbi Berekhya said: He was from that Sikhnin, and he ascended [to Jerusalem] and was appointed treasurer in the Temple. That is why the prophet chastises him and says: “What do you have here and whom do you have here, that you have dug a grave here for yourself?” (Isaiah 22:16). He said to him: ‘Exile son of exile, what wall have you constructed here, what pillar have you established here, even what nail have you affixed here?’ Rabbi Elazar said: A person must have a nail or a peg in a cemetery so he will have the privilege of being buried in that place. “That you have dug a grave here for yourself,” he crafted it like a dovecote of sorts and placed his grave upon it. “Digger of his grave on high” (Isaiah 22:16), Rabbi Shmuel said in the name of Mar Ukvan: From On High it was decreed of him that he would not have burial in the Land of Israel. “Who carves in rock an abode for himself” (Isaiah 22:16), a sarcophagus. “Behold, the Lord will shake you a great [gaver] shake” (Isaiah 22:17), wandering [tiltul] after wandering. Rabbi Shmuel bar Naḥman said: Like a rooster that was exiled and goes from place to place. “And He will wrap you [veotekha ato]” (Isaiah 22:17), as he was afflicted with leprosy, just as it says [of the leper]: “He shall cover [yateh] his upper lip” (Leviticus 13:45). “He will wind you about Him like a headdress” (Isaiah 22:18), exile after exile. “Like a ball” (Isaiah 22:18), just as a ball is caught in the hands and does not reach the ground, so it is with him. “To an expansive land” (Isaiah 22:18), this is “Kasifya” (Ezra 8:17). “There you will die and there will be the chariots of your glory” (Isaiah 22:18). According to the opinion of Rabbi Elazar, who said that he was High Priest, [Shevna was punished] because he would derive benefit from the offerings. According to the opinion of Rabbi Yehuda the Great, that he was the overseer, it was because he would derive benefit from the consecrated objects. “The shame of your master’s house” (Isaiah 22:18) – according to the opinion of Rabbi Elazar, that he was a High Priest, [this is stated] because he treated the offerings with contempt. According to the opinion of Rabbi Yehuda the Great, that he was the overseer, it was because he would treat his two masters with contempt. Who were they? They were Isaiah and Hezekiah. Rabbi Berekhya said in the name of Rabbi Abba bar Kahana: What did Shevna and Yoaḥ do? They took a writing sheet and wrote on it, stuck it onto an arrow, shot it through the window, and delivered it to Sennacherib. What did they write on it? ‘We and all the children of Israel seek to make peace with you; Isaiah and Hezekiah do not seek to make peace with you.’ That is what David foresaw through the Divine Spirit when he said: “For, behold, the wicked bend the bow” (Psalms 11:2), this is Shevna and Yoaḥ. “They fixed their arrow on the string” (Psalms 11:2), on the bowstring. “To shoot, in darkness, at the upright of heart” (Psalms 11:2) – who were they? They were Isaiah and Hezekiah.