1 Kings 2:11

11 He had reigned forty years over Israel—seven years in Hebron and thirty-three in Jerusalem.

Read 1 Kings 2:11 Using Other Translations

And the days that David reigned over Israel were forty years: seven years reigned he in Hebron, and thirty and three years reigned he in Jerusalem.
And the time that David reigned over Israel was forty years. He reigned seven years in Hebron and thirty-three years in Jerusalem.
David had reigned over Israel for forty years, seven of them in Hebron and thirty-three in Jerusalem.