He committed all the sins his father had done before him; his heart was not fully devoted to the LORD his God, as the heart of David his forefather had been. (NIV)
He walked in all the sins of his father [Rehoboam] before him; and his heart was not blameless with the Lord his God, as the heart of David his father [forefather]. (AMP)
And he walked in all the sins of his father, which he had done before him: and his heart was not perfect with the LORD his God, as the heart of David his father. (KJV)