So they strengthened the kingdom of Judah and upheld Rehoboam son of Solomon for three years; for they walked in the ways of David and Solomon for three years.