IMO the sin of pride involves not giving God the glory that belongs to him, but taking it to yourself. You see it when Nebuchadnezzar became lifted up in pride (Dan 4) and again when Belshazzar, who should have known better, did the same (Dan 5). But mainly you see it in Satan's fall and his "I wills" (I will be like the most high).
At the end of twelve months he walked in the palace of the kingdom of Babylon.
The king spake, and said, Is not this great Babylon, that I have built for the house of the kingdom by the might of my power, and for the honour of my majesty?
While the word was in the king's mouth, there fell a voice from heaven, saying, O king Nebuchadnezzar, to thee it is spoken; The kingdom is departed from thee.
And they shall drive thee from men, and thy dwelling shall be with the beasts of the field: they shall make thee to eat grass as oxen, and seven times shall pass over thee, until thou know that the most High ruleth in the kingdom of men, and giveth it to whomsoever he will. Dan 4:29-32
O thou king, the most high God gave Nebuchadnezzar thy father a kingdom, and majesty, and glory, and honour:
And for the majesty that he gave him, all people, nations, and languages, trembled and feared before him: whom he would he slew; and whom he would he kept alive; and whom he would he set up; and whom he would he put down.
But when his heart was lifted up, and his mind hardened in pride, he was deposed from his kingly throne, and they took his glory from him:
And he was driven from the sons of men; and his heart was made like the beasts, and his dwelling was with the wild asses: they fed him with grass like oxen, and his body was wet with the dew of heaven; till he knew that the most high God ruled in the kingdom of men, and that he appointeth over it whomsoever he will.
And thou his son, O Belshazzar, hast not humbled thine heart, though thou knewest all this;
But hast lifted up thyself against the Lord of heaven; and they have brought the vessels of his house before thee, and thou, and thy lords, thy wives, and thy concubines, have drunk wine in them; and thou hast praised the gods of silver, and gold, of brass, iron, wood, and stone, which see not, nor hear, nor know: and the God in whose hand thy breath is, and whose are all thy ways, hast thou not glorified:
Then was the part of the hand sent from him; and this writing was written.
And this is the writing that was written, MENE, MENE, TEKEL, UPHARSIN.
This is the interpretation of the thing: MENE; God hath numbered thy kingdom, and finished it.
TEKEL; Thou art weighed in the balances, and art found wanting.
PERES; Thy kingdom is divided, and given to the Medes and Persians. Dan 5:18-28