In these passages is the account of David becoming King of the unified Israel. He was 30 years old when he became king of Judah, reigning over Judah for 7 years. He became King of all Israel at the age of 37 and served as King for 33 more years. David was a King for 40 years, and God blessed David.
The Bible says that David was a ‘man after God’s own heart.’ David’s heart was aligned with God, and David walked rightly before God. David’s actions largely pleased God.
David also asked God for guidance before doing major things, such as going to battle against the Philistines. God told David how to proceed. God granted David much success.
David also delighted in the Word of God and was guided by what God commanded. David had a sincere heart. He not only obeyed God; he desired to obey God. The Bible indicates that God wants our obedience. More importantly, God wants us to desire to obey Him.