Jer.10:2 Thus saith the LORD, Learn not the way of the heathen, and be not dismayed at the signs of heaven; for the heathen are dismayed at them.
God created the stars and planets and the firmament to guide us along our way at night, and to help us count the days, seasons and years.