Psalm 22: The people despise the narrator, those who look at him ridicule him, his enemies with sharp instruments harm his hands and feet, the wicked look and stare at him.
Isaiah 11, talking about the Davidic Messiah, David being the son of Jesse, compares him to a banner, an object physically fastened to a pole in the air that people look at.A reproach of men, and despised by the people.
All those who see Me ridicule Me;
The congregation of the wicked has enclosed Me.
They gouged My hands and My feet;
I can count all My bones.
They [ie. the wicked] look and stare at Me.
They divide My garments among them,
And for My clothing they cast lots.
“And in that day there shall be a Root of Jesse, Who shall stand as a banner("nes") to the people".
Another time this Hebrew word (nes) is used is in Numbers 21:8, where it talks about Moses putting a serpeant on a pole (nes), which the people are healed by when they look at it. This brings to mind somewhat the image of David describing himself as a worm (although not a serpeant) that people look at.
A reference to nails:10 “And I will pour on the house of David and on the inhabitants of Jerusalem the Spirit of grace and supplication; then they will look on Me whom they pierced. Yes, they will mourn for Him as one mourns for his only son, and grieve for Him as one grieves for a firstborn.
"The words of the wise are like goads, and the words of scholars are like well-driven nails, given by one Shepherd." (Eccl 12)
I don't know what this "one shepherd" has to do with providing nails (why not a carpenter?), except it looks like a cryptic reference. Wise words could be considered ultimately to come from God. (eg. The Lord is My Shepherd, I shall not want, Ps. 23)