The Gemara explicitly teaches that anyone who is haughty is as if he worships idols, and presents humility as a necessary stance before God.
״וְאֶת דַּכָּא וּשְׁפַל רוּחַ״. רַב הוּנָא וְרַב חִסְדָּא, חַד אָמַר: אִתִּי דַּכָּא, וְחַד אָמַר: אֲנִי אֶת דַּכָּא. וּמִסְתַּבְּרָא כְּמַאן דְּאָמַר אֲנִי אֶת דַּכָּא, שֶׁהֲרֵי הַקָּדוֹשׁ בָּרוּךְ הוּא הִנִּיחַ כׇּל הָרִים וּגְבָעוֹת, וְהִשְׁרָה שְׁכִינָתוֹ עַל הַר סִינַי וְלֹא גָּבַהּ הַר סִינַי לְמַעְלָה. אָמַר רַב יוֹסֵף: לְעוֹלָם יִלְמַד אָדָם מִדַּעַת קוֹנוֹ, שֶׁהֲרֵי הַקָּדוֹשׁ בָּרוּךְ הוּא הִנִּיחַ כׇּל הָרִים וּגְבָעוֹת, וְהִשְׁרָה שְׁכִינָתוֹ עַל הַר סִינַי. וְהִנִּיחַ כׇּל אִילָנוֹת טוֹבוֹת, וְהִשְׁרָה שְׁכִינָתוֹ בַּסְּנֶה.
The Gemara continues the discussion of arrogance, and its converse, humility. The verse states: “For thus says the High and Lofty One that inhabits eternity, whose name is Holy: I dwell in the high and holy place, also with him that is of a contrite and humble spirit, to revive the spirit of the humble, and to revive the heart of the contrite ones” (Isaiah 57:15). Rav Huna and Rav Ḥisda offered differing interpretations of this verse. One says that the verse means: Together with Me is the person who is contrite and humble. In other words, God elevates the humble. And one says that the verse means: I, God, descend, and am found together with the person who is contrite and humble. The Gemara comments on this: And it stands to reason that the meaning of the verse is like the one who says: I am with the contrite person, as the Holy One, Blessed be He, disregarded all of the mountains and hills, and rested His Divine Presence on the lowly Mount Sinai, and He did not choose to raise Mount Sinai up toward Him. God chose to give the Torah on Mount Sinai, as it was a symbol of humility due to its lack of height, and He lowered His Divine Presence, as it were, to the mountain. Rav Yosef says: A person should always learn proper behavior from the wisdom of his Creator, as the Holy One, Blessed be He, disregarded all of the mountains and hills and rested His Divine Presence on the lowly Mount Sinai. And similarly, when appearing to Moses, He disregarded all of the beautiful trees and rested His Divine Presence on the bush (Exodus 3:2).