So we(inc) know that David was not speaking those words about himself. But because he was a prophet, he spoke about the Messiah. David knew that God had strongly promised him that he would cause one of his descendants to become king [MTY] like David was king. (OR, to be the Messiah who would rule God’s people like David had ruled them.)