You know those titles of the Psalms? The ones that are usually in small caps? Did you know that those are part of the original Hebrew text? There isn’t a known edition of the Hebrew scriptures that doesn’t have those titles so we should assume they are inspired along with the rest of the text.
A PSALM OF DAVID. A SONG AT THE DEDICATION OF THE TEMPLE.
I will extol you, O LORD, for you have drawn me up
and have not let my foes rejoice over me.
O LORD my God, I cried to you for help,
and you have healed me.
O LORD, you have brought up my soul from Sheol;
you restored me to life from among those who go down to the pit. (Psalm 30:1–3)
The title of Psalm 30 is, as best as we can determine, inspired. Psalm 30 is written by David or about David (“of” can mean either) and it is about the dedication of the temple. David had died before Solomon built or dedicated the temple (1 Kings 2:10) so this may be a song David had written to be sung at that event. Or it is written to describe David and his relationship to the dedication.
Now, David didn’t rise from the dead and attend the dedication of the temple (Acts 2:29), but David and the temple mean more in the Bible story than they do solely in the Psalms and so they mean more in the Psalms than they do at first read there.
There is a Biblical promise of David’s son who would build the temple and reign forever (2 Sam. 7). In one sense, that was Solomon since he built the temple. But in another sense it isn’t since he didn’t reign forever.
The connection between the temple and resurrection in the New Testament is clear:
Jesus answered them, “Destroy this temple, and in three days I will raise it up.” The Jews then said, “It has taken forty-six years to build this temple, and will you raise it up in three days?” But he was speaking about the temple of his body. When therefore he was raised from the dead, his disciples remembered that he had said this, and they believed the Scripture and the word that Jesus had spoken. (John 2:19–22)
The Psalm goes on in verse 9:
What profit is there in my death,
if I go down to the pit?
Will the dust praise you?
Will it tell of your faithfulness?
Again, death is involved but the question the Psalmist asks is if there was to be profit in his death. Will the dust praise God? Again, Jesus gives the answer:
As [Jesus] was drawing near [to Jerusalem, riding on a donkey]—already on the way down the Mount of Olives—the whole multitude of his disciples began to rejoice and praise God with a loud voice for all the mighty works that they had seen, saying, “Blessed is the King who comes in the name of the Lord! Peace in heaven and glory in the highest!” And some of the Pharisees in the crowd said to him, “Teacher, rebuke your disciples.” He answered, “I tell you, if these were silent, the very stones would cry out.” (Luke 19:36–40)
Jesus is heading to his execution, his crucifixion. His death, complete but not final, will ensure that the rocks and the dust they will become don’t need to praise God. His death will draw in people who will praise God “in spirit and in truth” (John 4:23).