David was, originally, leader of the Tribe of Judah who became the second king of the united Kingdom of Israel, according to the Hebrew Bible and Old Testament.
King David Playing the Harp (1622) by Gerard van Honthorst
King David in Prayer, by Pieter de Grebber (c. 1640)
Samuel anoints David, Dura-Europos synagogue, now in Syria, 3rd century AD.
David and Goliath (1888), colour lithograph by German artist Osmar Schindler
Solomon, also called Jedidiah, was a king of ancient Israel. The successor of his father David, he is described as the penultimate ruler of all Twelve Tribes of Israel under a united Israel and Judah.
David
…to continue his reign. David desires to build a temple to Yahweh, but is denied because of the bloodshed of his reign. He dies at age 70 and chooses Solomon, his son with Bathsheba, as his successor instead of his eldest surviving son Adonijah. David is honoured as an ideal king and the forefather of the…
King Solomon (1872) by Simeon Solomon
The Anointing of Solomon by Cornelis de Vos (c. 1630). According to 1 Kings 1:39, Solomon was anointed by Zadok.
Luca Giordano: The Dream of Solomon: God promises Solomon wisdom.
Solomon receiving envoys of the tributary nations