So they strengthened the kingdom of Judah and supported Rehoboam son of Solomon for three years, because they walked for three years in the way of David and Solomon.