Because the Lord loved David, the Lord gave him a kingdom in Jerusalem and allowed him to have a son to be king after him. The Lord also kept Jerusalem safe.