This is an epithalamion or ode on a king's marriage. The usual bewildering variety of conjectures as to his identity meets us in commentaries. The older opinion points to Solomon's marriage to an Egyptian princess, to which it is objected that he was not a warrior king, as the monarch of the psalm is. Hitzig regards "daughter of Tyre," in ver. 12, as a vocative, and therefore looks for a king who married a Tyrian woman.
1 Kings 22:50 And Jehoshaphat rested with his fathers and was buried with them in the city of his father David. And his son Jehoram reigned in his place.
2 Kings 8:16–17 In the fifth year of the reign of Joram son of Ahab over Israel, Jehoram son of Jehoshaphat succeeded his father as king of Judah.
2 Chronicles 9:31 And Solomon rested with his fathers and was buried in the city of his father David. And his son Rehoboam reigned in his place.
2 Chronicles 12:16 And Rehoboam rested with his fathers and was buried in the City of David. And his son Abijah reigned in his place.
2 Chronicles 21:20 Jehoram was thirty-two years old when he became king, and he reigned in Jerusalem eight years. He died, to no one’s regret, and was buried in the City of David, but not in the tombs of the kings.