1 Kings 15:5

because David did that which was right in the eyes of Yahweh, and didn't turn aside from anything that he commanded him all the days of his life, except only in the matter of Uriah the Hittite.

1 Kings 14:8

and tore the kingdom away from the house of David, and gave it you; and yet you have not been as my servant David, who kept my commandments, and who followed me with all his heart, to do that only which was right in my eyes,

2 Samuel 11:15-17

He wrote in the letter, saying, "Send Uriah to the forefront of the hottest battle, and retreat from him, that he may be struck, and die."

2 Samuel 12:9-10

Why have you despised the word of Yahweh, to do that which is evil in his sight? You have struck Uriah the Hittite with the sword, and have taken his wife to be your wife, and have slain him with the sword of the children of Ammon.

1 Kings 9:4

As for you, if you will walk before me, as David your father walked, in integrity of heart, and in uprightness, to do according to all that I have commanded you, and will keep my statutes and my ordinances;

Luke 1:6

They were both righteous before God, walking blamelessly in all the commandments and ordinances of the Lord.

2 Samuel 11:3-4

David sent and inquired after the woman. One said, "Isn't this Bathsheba, the daughter of Eliam, the wife of Uriah the Hittite?"

1 Kings 15:3

He walked in all the sins of his father, which he had done before him; and his heart was not perfect with Yahweh his God, as the heart of David his father.

2 Kings 22:2

He did that which was right in the eyes of Yahweh, and walked in all the way of David his father, and didn't turn aside to the right hand or to the left.

2 Chronicles 34:2

He did that which was right in the eyes of Yahweh, and walked in the ways of David his father, and didn't turn aside to the right hand or to the left.

Psalm 51:1

Have mercy on me, God, according to your loving kindness. According to the multitude of your tender mercies, blot out my transgressions.

Psalm 119:6

Then I wouldn't be disappointed, when I consider all of your commandments.

Acts 13:22

When he had removed him, he raised up David to be their king, to whom he also testified, 'I have found David the son of Jesse, a man after my heart, who will do all my will.'

Acts 13:36

For David, after he had in his own generation served the counsel of God, fell asleep, and was laid with his fathers, and saw decay.

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
He walked in all the sins of his father, which he had done before him; and his heart was not perfect with Yahweh his God, as the heart of David his father.
1 Kings 14:8
and tore the kingdom away from the house of David, and gave it you; and yet you have not been as my servant David, who kept my commandments, and who followed me with all his heart, to do that only which was right in my eyes,
2 Kings 22:2
He did that which was right in the eyes of Yahweh, and walked in all the way of David his father, and didn't turn aside to the right hand or to the left.
2 Chronicles 34:2
He did that which was right in the eyes of Yahweh, and walked in the ways of David his father, and didn't turn aside to the right hand or to the left.
Psalm 119:6
Then I wouldn't be disappointed, when I consider all of your commandments.
Luke 1:6
They were both righteous before God, walking blamelessly in all the commandments and ordinances of the Lord.
Acts 13:22
When he had removed him, he raised up David to be their king, to whom he also testified, 'I have found David the son of Jesse, a man after my heart, who will do all my will.'