Psalm 72 is a psalm for the king when he begins to be the king. David wrote it as a blessing on his son, Solomon. (See: [[rc://en/tw/dict/bible/kt/bless]])
The whole collection of Psalms has been divided into several "books." This is the last psalm of the second book. It is attributed to Solomon, the son of David.