According to the Biblical narrative, King David commits adultery with Bathsheba, leading him to arrange the death of her husband Uriah the Hittite. David's son Absalom later schemes to overthrow David and, during the ensuing rebellion, David flees Jerusalem, but returns after Absalom's death to rule Israel. David desires to construct a temple to YHWH in which to house the Ark but, because he shed much blood, YHWH denies David the opportunity to do so. David goes on to rule as king until his death at age 70, prior to which he chooses his son Solomon, born to him and Bathsheba, to be his successor instead of Adonijah, David's eldest surviving son. David is honored in the prophetic literature as an ideal king and the forefather of a future Messiah, and many psalms are ascribed to him.