The length of time David reigned over Israel was 40 years: he reigned seven years in Hebron and 33 years in Jerusalem.