1 Kings 15:3
“And he walked in all the sins of his father, which he had done before him: and his heart was not perfect with the Lord his God, as the heart of David his father.”
Now in the eighteenth year of king Jeroboam the son of Nebat reigned Abijam over Judah.
Three years reigned he in Jerusalem. And his mother’s name was Maachah, the daughter of Abishalom.
And he walked in all the sins of his father, which he had done before him: and his heart was not perfect with the Lord his God, as the heart of David his father.
Nevertheless for David’s sake did the Lord his God give him a lamp in Jerusalem, to set up his son after him, and to establish Jerusalem:
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.
Counter-Arguments
The strongest case that this verse does not belong in this theme.

Cross-References
“Create in me a clean heart, O God; and renew a right spirit within me.”
“And when he had removed him, he raised up unto them David to be their king; to whom also he gave testimony, and said, I have found David the son of Jesse, a man after mine own heart, which shall fulfil all my will.”
“For it came to pass, when Solomon was old, that his wives turned away his heart after other gods: and his heart was not perfect with the Lord his God, as was the heart of David his father.”
“Let your heart therefore be perfect with the Lord our God, to walk in his statutes, and to keep his commandments, as at this day.”
“And thus did Hezekiah throughout all Judah, and wrought that which was good and right and truth before the Lord his God.”