The king and his men marched to Jerusalem against the Jebusites who inhabited the land. The Jebusites had said to David: "You will never get in here. Even the blind and lame can repel you," thinking, "David can't get in here."
References for 2 Samuel 5:6
Yet David did capture the stronghold of Zion, the city of David.
He said that day, "Whoever attacks the Jebusites must go through the water shaft to reach the lame and the blind who are despised by David." For this reason it is said, "The blind and the lame will never enter the house."
References for 2 Samuel 5:8
David took up residence in the stronghold, which he named the city of David. He built it up all the way around from the supporting terraces inward.
References for 2 Samuel 5:9
David became more and more powerful, and the Lord God of Hosts was with him.
References for 2 Samuel 5:10
King Hiram of Tyre sent envoys to David; [he also sent] cedar logs, carpenters, and stonemasons, and they built a palace for David.
References for 2 Samuel 5:11
Then David knew that the Lord had established him as king over Israel and had exalted his kingdom for the sake of His people Israel.
After he arrived from Hebron, David took more concubines and wives in Jerusalem, and more sons and daughters were born to him.
These are the names of those born to him in Jerusalem: Shammua, Shobab, Nathan, Solomon,
Ibhar, Elishua, Nepheg, Japhia,
Elishama, Eliada, and Eliphelet.
References for 2 Samuel 5:16
When the Philistines heard that David had been anointed king over Israel, they all went in search of David, but he heard about it and went down to the stronghold.
So the Philistines came and spread out in the Valley of Rephaim.
Then David inquired of the Lord: "Should I go to war against the Philistines? Will you hand them over to me?" The Lord replied to David, "Go, for I will certainly hand the Philistines over to you."
So David went to Baal-perazim and defeated them there and said, "Like a bursting flood, the Lord has burst out against my enemies before me." Therefore, he named that place the Lord Bursts Out.
References for 2 Samuel 5:20
The Philistines abandoned their idols there, and David and his men carried them off.
The Philistines came up again and spread out in the Valley of Rephaim.
References for 2 Samuel 5:22
So David inquired of the Lord, and He answered, "Do not make a frontal assault. Circle around behind them and attack them opposite the balsam trees.
When you hear the sound of marching in the tops of the balsam trees, act decisively, for then the Lord will have marched out ahead of you to attack the camp of the Philistines."
References for 2 Samuel 5:24
So David did exactly as the Lord commanded him, and he struck down the Philistines all the way from Geba to Gezer.
References for 2 Samuel 5:25