1 Kings 15:3-5

KJV_Strongs(i)
  3 H3212 And he walked [H8799]   H2403 in all the sins H1 of his father H6213 , which he had done [H8804]   H6440 before H3824 him: and his heart H8003 was not perfect H3068 with the LORD H430 his God H3824 , as the heart H1732 of David H1 his father.
  4 H1732 Nevertheless for David's H3068 sake did the LORD H430 his God H5414 give [H8804]   H5216 him a lamp H3389 in Jerusalem H6965 , to set up [H8687]   H1121 his son H310 after H5975 him, and to establish [H8687]   H3389 Jerusalem:
  5 H1732 Because David H6213 did [H8804]   H3477 that which was right H5869 in the eyes H3068 of the LORD H5493 , and turned not aside [H8804]   H6680 from any thing that he commanded [H8765]   H3117 him all the days H2416 of his life H1697 , save only in the matter H223 of Uriah H2850 the Hittite.