Deuteronomy 18:10
There shall not be found among you any one that maketh his son or his daughter to pass through the fire, or that useth divination, or an observer of times, or an enchanter, or a witch
God set the sun, moon, stars, and other heavenly bodies for “signs”.
We see this at creation:
Genesis 1:14 NKJV
Then God said, “Let there be lights in the firmament of the heavens to divide the day from the night; and let them be for signs and seasons, and for days and years.”
We see this at His appointed feast days:
https://www.biblegateway.com/passage/?search=Leviticus%2023&version=NKJV
We see this at Christ’s birth:
Matthew 2:9-10 NKJV
When they heard the king, they departed; and behold, the star which they had seen in the East went before them, till it came and stood over where the young Child was. When they saw the star, they rejoiced with exceedingly great joy.
We see this at Christ’s death:
Luke 23:45-47 NKJV
Then the sun was darkened, and the veil of the temple was torn in two. And when Jesus had cried out with a loud voice, He said, “Father, ‘into Your hands I commit My spirit.’ ” Having said this, He breathed His last. So when the centurion saw what had happened, he glorified God, saying, “Certainly this was a righteous Man!”
We see this at Christ’s future second coming:
Matthew 24:29-30 NKJV
Immediately after the tribulation of those days the sun will be darkened, and the moon will not give its light; the stars will fall from heaven, and the powers of the heavens will be shaken. Then the sign of the Son of Man will appear in heaven, and then all the tribes of the earth will mourn, and they will see the Son of Man coming on the clouds of heaven with power and great glory.
Jesus specifically gave this sign to us as an indication of His imminent return. It’s quite ridiculous to compare this to the biblically forbidden practice of astrology. Biblical signs point us to God. Astrology and similar practices are the opposite. Participants seek to gain control of the future rather than acknowledging that God is in control. Historically, such practices also attributed control to idols. The Pantheon of gods in many cultures was associated with the planets. Christians recognize that Jesus is the Lord of Hosts.