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.