NET
4 Nevertheless for David’s sake the Lord his God maintained his dynasty in Jerusalem by giving him a son to succeed him and by protecting Jerusalem.
Darby
4 But for David's sake Jehovah his God gave him a lamp in Jerusalem, setting up his son after him, and establishing Jerusalem;
KJV
4 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: