Commentators explain that God's judgment, symbolized by the 'sword,' was a direct response to the pride of Egypt's king. He boasted in his own power and wealth, forgetting that God is the ultimate source of all things. Matthew Henry notes that this self-idolatry is a universal temptation, where people worship their own security and property in contempt of God's sovereignty.