1 Kings 3:6

3:6 Solomon replied, “You demonstrated great loyalty to your servant, my father David, as he served you faithfully, properly, and sincerely. You have maintained this great loyalty to this day by allowing his son to sit on his throne.

1 Kings 11:38

11:38 You must obey all I command you to do, follow my instructions, do what I approve, and keep my rules and commandments, like my servant David did. Then I will be with you and establish for you a lasting dynasty, as I did for David; I will give you Israel.

1 Kings 15:5

15:5 He did this because David had done what he approved and had not disregarded any of his commandments his entire lifetime, except for the incident involving Uriah the Hittite.