He sinned against the Lord, for until the day of his death he followed the wicked example of King Jeroboam son of Nebat, who led Israel into sin till the day of his death.