1 Chronicles 29:27-30
29:27 He reigned over Israel forty years; he reigned in Hebron seven years and in Jerusalem thirty-three years.
29:28 He died at a good old age, having enjoyed long life, wealth, and honor. His son Solomon succeeded him.
29:29 King David’s accomplishments, from start to finish, are recorded in the Annals of Samuel the prophet, the Annals of Nathan the prophet, and the Annals of Gad the prophet.
29:30 Recorded there are all the facts about his reign and accomplishments, and an account of the events that involved him, Israel, and all the neighboring kingdoms.