As regard the belief that stars have power in realizing one’s wishes or in determining one’s future plans, it’s a baseless idea; there is no room in Islam for such thing. Stars will never chart one’s life.
Qatadah, a Companion of the Prophet, peace and blessings be upon him, said that the stars were created for three tasks: to decorate the sky, to act as missiles for the devils, and signs for people to know their ways and times. Allah says, “And He it is Who hath set for you the stars that ye may guide your course by them amid the darkness of the land and the sea We have detailed Our revelations for a people who have knowledge.” (Al-An`am: 97)
Here the well-known Sheikh Ibn `Uthaymeen, a prominent Saudi scholar, clarifies:
“The science of stars is of two kinds:
1- It acts as a science of influence.
2- It’s a science of guidance.
As for the first kind, it takes three forms:
A-Having belief that stars influence one’s life, that they control one’s future, that they are behind the good and the evil that befall man; having such belief renders the Muslim a polytheist for it means ascribing partners unto Allah.
B- Taking the stars as signs of revealing the Unseen, e.g. to believe that a newborn baby will be happy because it is born in such period where a specific star happens to be in the sky, or that a child will be miserable because it is born in such and such nights where a specific star happens to be in the middle of the sky. Having belief in such thing drives one to what is known as Shirk Akbar (major polytheism), because anyone who does so claims of knowing the Unseen whereas this knowledge is only possessed by Allah, the All-Knowing! The Qur’an says: “Say (O Muhammad): None in the heavens and the earth knoweth the Unseen save Allah; and they know not when they will be raised (again).” (An-Naml: 65)
C- Considering the stars a reason behind the occurrence of the good and the bad, i.e. to believe that, for example, it rains because a star has reached a certain point in the sky, etc. Having belief in that is what is known as Shirk Asghar (Minor Polytheism). It is reported that once it rained during the night and the people said: “It rained because a certain star appeared in the sky.” In the following morning, the Prophet told the people, “Have you been informed of what Your Lord said?” The people replied, “Allah and His Messenger know better!” The Prophet said, “Your Lord says, “Some of my worshipers rose this morning believing in Me while others rose as infidels. Who said that it rained due to Allah’s Bounty and Mercy is a believer in Me and a disbeliever in stars. Who said that it rained due to such and such stars is a disbeliever in Me and a believer in stars.”
As for the second kind, the science of guidance, it means to use the stars to know the timing and seasons of the year. This is allowed as mentioned earlier in the saying of Qatadah.”