David becomes king of Israel and Judah
1All the Israelite tribes came to David at Hebron and said, "Listen: We are your very own flesh and bone. 2In the past, when Saul ruled over us, you were the one who led Israel out to war and back. What’s more, the LORD told you, You will shepherd my people Israel, and you will be Israel’s leader.
3So all the Israelite elders came to the king at Hebron. King David made a covenant with them at Hebron before the LORD, and they anointed David king over Israel.
4David was 30 years old when he became king, and he ruled for forty years. 5He ruled over Judah for seven and a half years in Hebron. He ruled thirty-three years over all Israel and Judah in Jerusalem.
Jerusalem is captured
6The king and his troops marched on Jerusalem against the Jebusites, who inhabited the territory. The Jebusites said to David, "You’ll never get us in here! Even the blind and the lame will beat you back!" "David will never enter here," they said to each other.#Or they thought; Heb lacks to each other. 7But David did capture the fortress of Zion—which became David’s City. 8"On that day," David said, "whoever attacks the Jebusites should strike the windpipe because David hates the lame and the blind."#Or take the water shaft against the lame and the blind who hate David; Heb uncertain That is why people say, "The blind and the lame will not enter the temple."#Or palace 9David occupied the fortress, so it was renamed David’s City. David built a city around it from the earthen terraces#Heb Millo inward.#DSS (4QSama); MT lacks city. 10David grew increasingly powerful, and the LORD of heavenly forces was with him.
11Tyre’s King Hiram sent messengers to David with cedar logs, bricklayers, and carpenters to build David a palace. 12Then David knew that the LORD had established him as king over Israel, and that his kingship was held in great honor for the sake of his people Israel. 13After he left Hebron, David married more secondary wives in Jerusalem and fathered more sons and daughters. 14The names of his children in Jerusalem were as follows: Shammua, Shobab, Nathan, Solomon, 15Ibhar, Elishua, Nepheg, Japhia, 16Elishama, Eliada, and Eliphelet.
David defeats the Philistines
17When the Philistines heard that David had been anointed king over Israel, they all marched up to find him, but David heard of it and went down to the fortress. 18The Philistines arrived and spread out over the Rephaim Valley. 19David asked the LORD, "Should I attack the Philistines? Will you hand them over to me?"
"Attack them," the LORD replied, "because I will definitely hand the Philistines over to you."
20So David arrived at Baal-perazim and defeated the Philistines there. He said, "The LORD has burst out against my enemies, the way water bursts out!" That is why that place is called Baal-perazim.#Baal-perazim means the lord (Heb baal) of breaking out; see note at 2 Sam 6:8. 21The Philistines left their divine images behind, and David and his men carried them off.
22Once again the Philistines came up and spread out across the Rephaim Valley. 23When David asked the LORD, God replied, "Don’t attack them directly. Circle around behind them and come at them from in front of the balsam trees. 24As soon as you hear the sound of marching in the tops of the trees, then attack, for God has attacked in front of you to defeat the Philistine army." 25David followed God’s orders exactly, and they defeated the Philistine army from Gibeon all the way to Gezer.