David had been king of Israel for forty years. He ruled for seven years in Hebron and for thirty-three years in Jerusalem.