(Numbers 10:1–2:) "AND THE LORD SPOKE <to Moses, saying>: MAKE FOR YOURSELF TWO TRUMPETS OF SILVER." This is what Scripture says (Psalms 24:7): "LIFT UP YOUR HEADS, O GATES, [AND BE LIFTED UP, O EVERLASTING DOORS], <that the King of glory may come in>." At the hour when Solomon was bringing in the Ark into the Temple, he began to say, "LIFT UP YOUR HEADS, O GATES," for the openings were low, [and he said,] "AND BE LIFTED UP, O EVERLASTING DOORS, THAT THE KING OF GLORY MAY COME IN." The gates said to him (Psalms 24:10), "WHO IS THIS KING OF GLORY?" Immediately the gates sought to swallow him up — had he not said (ibid.), "THE LORD OF HOSTS, HE IS THE KING OF GLORY. SELAH." He repeated and said (Psalms 24:8), "THE LORD STRONG AND MIGHTY." He said to them: Make yourselves great, for the King of glory comes upon you. Immediately they apportioned Him honor, and they lifted up honor for Him, and they lifted up themselves, and the Ark entered. The Holy One, blessed be He, said to them: You apportioned Me honor; when I destroy My House, no man shall rule over you. Know that all the vessels of the Temple were exiled to Babylon, as it is said (Daniel 1:2), "AND THE LORD GAVE INTO HIS HAND Jehoiakim king of Judah, [and part of the vessels of the House of God, and he brought them to the land of Shinar]." But the gates of the Temple were hidden away in their place, as it is said (Lamentations 2:9), "HER GATES HAVE SUNK INTO THE GROUND."
Solomon and the Temple Gates That Bowed to the Ark
Midrash Tanchuma Buber, Beha'alotcha 14:1
וידבר ה' וגו' עשה לך שתי חצוצרות כסף (במדבר י א ב), זש"ה שאו שערים ראשיכם [והנשאו פתחי עולם] (תהלים כד ז), בשעה שהכניס שלה את הארון לבהמ"ק, התחיל לומר שאו שערים ראשיכם, שהיו הפתחים שפלים, [ואמר] והנשאו פתחי עולם ויבא מלך הכבוד, א"ל השערים מי הוא זה מלך הכבוד (שם שם י), מיד בקשו השערים לבלעו, אילולי שאמר ה' צבאות הוא מלך הכבוד סלה (שם), חזר ואמר ה' עזוז וגבור (שם ח), אמר להם התגדלו שמלך הכבוד בא עליכם, מיד חלקו לו כבוד, ונשאו לו כבוד, ונשאו את עצמן, ונכנס הארון, אמר להם הקב"ה אתם חלקתם לי כבוד, כשאחריב את ביתי, אין אדם שולט בכם, תדע שכל כלי בהמ"ק גלו לבבל, שנאמר ויתן ה' בידו את יהויקים מלך יהודה [ומקצת כלי בית האלהים ויביאם ארץ שנער] (דניאל א ב), אבל שערי בהמ"ק במקומן נגנזו, שנאמר טבעו בארץ שעריה (איכה ב ט).