2 Samuel 2:10-11 NLT

10 Ishbosheth was forty years old when he became king, and he ruled from Mahanaim for two years. Meanwhile, the tribe of Judah remained loyal to David.
11 David made Hebron his capital, and he ruled as king of Judah for seven and a half years.