He built altars to all the stars in the sky in both courtyards of the LORD's temple.