Acts 2
29 “Men and brethren, let me speak freely to you of the patriarch David, that he is both dead and buried, and his tomb is with us to this day. 30 Therefore, being a prophet, and knowing that God had sworn with an oath to him that of the fruit of his body, [i]according to the flesh, He would raise up the Christ to sit on his throne, 31 he, foreseeing this, spoke concerning the resurrection of the Christ, that His soul was not left in Hades, nor did His flesh see corruption. 32 This Jesus God has raised up, of which we are all witnesses.

Peter takes time to explain the Psalm he recited that was written by David.

From my commentary:
Peter points out that this Psalm cannot be speaking of its human author, David – he is dead and remains buried. The Psalm must speak prophetically of the Messiah, Jesus.