This is a royal psalm. It is petition for the prosperity of the Lord's anointed. The superscription implies it was a prayer of Solomon, or possibly a prayer of David for his son, Solomon.--It is ultimately a Messianic psalm that shares the promises made to David and his descendants. While the immediate purpose was for blessings upon Solomon, ultimately only one -greater than Solomon- could fulfill the scope of the blessings described. The Messiah, Son of David -Jesus-, will fulfill these desires in His Millennial Kingdom.