1 Kings 2:10-11 CSB

10 Then David rested with his fathers and was buried in the city of David.
11 The [length of] time David reigned over Israel was 40 years: he reigned seven years in Hebron and 33 years in Jerusalem.