1 Kings 15:4-5 (WEB)
4 Nevertheless for David’s sake, the LORD his God gave him a lamp in Jerusalem, to set up his son after him and to establish Jerusalem;
5 because David did that which was right in the LORD’s eyes, and didn’t turn away from anything that he commanded him all the days of his life, except only in the matter of Uriah the Hittite.
About 1 Kings 15: 1 Kings 15 covers a stretch of time when the kingdom is split in two. The chapter moves back and forth between Abijam and Asa, kings of Judah, and Nadab and Baasha, kings of Israel. It begins with Abijam’s reign in verse 1. He walked in the sins of his father Rehoboam. Verse 4 explains that God did not destroy David’s line entirely. For David’s sake, God left a lamp burning in Jerusalem. That phrase means God kept a successor on the throne and preserved the city. It was mercy based on a covenant promise, not Abijam’s own goodness. Read the study notes
2 verses · Compare in parallel · Read all of 1 Kings 15