Often times Christians cite some of the writings of David as prophetically applicable towards Jesus.
Therefore, I'm curious if there are any doctrines, traditions or textual evidence that suggest that David was or wasn't aware of the prophetic applicability of his writings.
"Kiss his son, or he will be angry and your way will lead to your destruction, for his wrath can flare up in a moment. Blessed are all who take refuge in him." - Psalms 2:12
Did David just think he was talking about himself as the anointed son of the Lord or did he recognize a double meaning to come?
The answer to this question could give insight into David's motivations as well as reveal implications for analyzing the writings of other potential or confirmed prophets.