They strengthened the kingdom of Judah and supported Rehoboam son of Solomon for three years, following the ways of David and Solomon during this time.