1 Kings 15:5

because that David did which pleased the LORD and turned from nothing that he commanded him all the days of his life, save only in the matter of Uriah the Hittite.

1 Kings 14:8

and did rent the kingdom away from the house of David and gave it thee - and thou hast not been as was my servant David, which kept my commandments and followed me with all his heart, to do that only which seemeth right in mine eyes -

2 Samuel 11:15-17

And he wrote in the letter saying, "Put Uriah in the forefront of the battle where it is most strong, and come back from him that he may be smitten to death."

2 Samuel 12:9-10

Wherefore hast thou despised the commandment of the LORD, to do wickedness in his sight? Thou hast killed Uriah the Hittite with the sword and hast taken his wife to thy wife, and hast slain him with the sword of the children of Ammon.

1 Kings 9:4

And if thou wilt walk before me, as David thy father walked, in pureness of heart and plainness, to do all that I have commanded thee, and shalt keep mine ordinances and customs:

Luke 1:6

Both were perfect before God, and walked in all the laws and ordinances of the Lord, that no man could find fault with them.

2 Samuel 11:3-4

And it was answered again, that she was Bathsheba the daughter of Eliam and wife to Uriah the Hittite.

1 Kings 15:3

And he walked in all the sins of his father which he did before him, and his heart was not whole with the LORD his God, as the heart of David his father.

2 Kings 22:2

And he did that seemed right in the sight of the LORD, and walked in all the ways of David his father, and bowed neither to the righthand nor to the left.

2 Chronicles 34:2

And he did that pleased the LORD, and walked in the ways of David his father, bowing neither to the righthand nor to the left.

Psalm 51:1

{To the chanter, a Psalm of David, when the Prophet Nathan came unto him, after he was gone in to Bathsheba} Have mercy upon me, O God, after thy great goodness; according to the multitude of thy mercies do away mine offences.

Psalm 119:6

So shall I not be confounded, while I have respect unto all thy commandments.

Acts 13:22

And after he had put him down, he set up David to be their king: of whom he gave reported, saying, 'I have found David the son of Jesse, a man after mine own heart, he shall fulfill all my will.'

Acts 13:36

Howbeit David, after he had in his time fulfilled the will of God, he slept, and was laid with his fathers, and saw corruption.

Treasury of Scripture Knowledge

Summary

Because David did that which was right in the eyes of the LORD, and turned not aside from any thing that he commanded him all the days of his life, save only in the matter of Uriah the Hittite.

Bible References

David

1 Kings 15:3
And he walked in all the sins of his father which he did before him, and his heart was not whole with the LORD his God, as the heart of David his father.
1 Kings 14:8
and did rent the kingdom away from the house of David and gave it thee - and thou hast not been as was my servant David, which kept my commandments and followed me with all his heart, to do that only which seemeth right in mine eyes -
2 Kings 22:2
And he did that seemed right in the sight of the LORD, and walked in all the ways of David his father, and bowed neither to the righthand nor to the left.
2 Chronicles 34:2
And he did that pleased the LORD, and walked in the ways of David his father, bowing neither to the righthand nor to the left.
Psalm 119:6
So shall I not be confounded, while I have respect unto all thy commandments.
Luke 1:6
Both were perfect before God, and walked in all the laws and ordinances of the Lord, that no man could find fault with them.
Acts 13:22
And after he had put him down, he set up David to be their king: of whom he gave reported, saying, 'I have found David the son of Jesse, a man after mine own heart, he shall fulfill all my will.'