David made Jerusalem capital

Samuel was a priest and prophet in Israel. The people said to Samuel, "'Behold, you have grown old, and your sons do not walk in your ways. Now appoint a king for us to judge us like all nations'" (1Sa 8:5). The Lord then told Samuel, "'Listen to the voice of the people . . . [for] they have rejected Me from being king over them . . . [so] tell them of the procedure of the king who will reign over them'" (:7-9). He was ministering in a certain city and Saul was seeking his help there. Saul was told, "'You will find him before he goes up to the high place to eat, for the people will not eat until he comes, because he must bless the sacrifice'" (:13). The previous day God had told Samuel, "'About this time tomorrow I will send a man from the land of Benjamin, and you shall anoint him to be prince over My people Israel'" (:15). Saul became king and later in a critical situation he "waited seven days, according to the appointed time set by Samuel, but Samuel did not come to Gilgal" (13:8) so he made the offering himself. "As soon as he finished . . . Samuel came" (:10) and he explained that he had been desperate saying, "'I forced myself and offered the burnt offering'" (:12). Samuel told him, "'You have acted foolishly . . . but now your kingdom shall not endure'" (:13). Later, God told Samuel, "'I regret I have made Saul king, for he has turned back from following Me and has not carried out My commands'" (15:11). Then Samuel told Saul, "'Because you have rejected the word of the Lord, He has rejected you from being king'" (:23). Later God said to Samuel, "'I will send you to Jesse the Bethlehemite, for I have selected a king for Myself among his sons'" (16:1). This fulfilled Isaiah's prophecy "a shoot will spring from the stem of Jesse, and a branch from his roots will bear fruit" (Isa 11:1). Also, "the women said to Naomi, 'Blessed is the Lord who has not left you without a redeemer today, and may his name become famous in Israel'" (Ruth 4:13). "They named him Obed. He is the father of Jesse, the father of David" (:17). They brought David to Samuel and God said, "'Anoint him; for this is he'" (1Sa 16:12). Samuel did so and "the Spirit of the Lord came mightily upon David from that day forward" (:13).

Many years passed and "David inquired of the Lord" (2Sa 2:1) what to do. It led to the men of Judah anointing "David king over the house of Judah'" (:4). Events led to Israel coming to David at Hebron. They said, "'The Lord said to you, 'You will shepherd My people Israel''" (5:2). A covenant was made with them and "they anointed David king over Israel" (:3). "He reigned thirty-three years over all Israel and Judah" (:5). There was a natural fortress on a rock escarpment on the western ridge of Jerusalem controlled by the Jebusites. "David captured the stronghold" (5:17) and "lived in the stronghold and called it the city of David" (i.e. Zion) (:9). He "realized that the Lord had established him as king over Israel, and that He had exalted his kingdom for the sake of His people Israel" (:12). He made Jerusalem his capital which was on the border of Judah and Israel. David "was buried in the city of David" (1Ki 2:10). "Soloman sat on the throne of David his father, and his kingdom was firmly established" (:12).