1 Kings 3:6
6 And Solomon said, “You have shown great and steadfast love to your servant David my father, because hhe walked before you in faithfulness, in righteousness, and in uprightness of heart toward you. And you have kept for him this great and steadfast love and ihave given him a son to sit on his throne this day.
1 Kings 15:5
5 because zDavid did what was right in the eyes of the Lord and did not turn aside from anything that he commanded him all the days of his life, aexcept in the matter of Uriah the Hittite.