In Islam, there is no room for anyone predicting the future. It is only Allah Who has the full and accurate knowledge of the future. Even the Messenger of Allah (peace and blessings be upon him) did not know the hidden things except what Allah revealed to him. Allah says, “(He is) the knower of the Unseen, and He revealeth unto none His secret, save unto every Messenger whom He hath chosen, and then He maketh a guard to go before him and a guard behind him.” (Al-Jinn: 26-27) Hence, it is forbidden for Muslims to consult the future tellers or astronomers.
Dr. Muzammil H. Siddiqi, former President of the Islamic Society of North America, states: “Allah says in the Qur’an that “no one in the heaven and earth knows the hidden things except Allah.” (An-Naml: 65) Even the Prophet (peace and blessings be upon him) did not know the hidden things except what Allah revealed to him. “Say, I do not say to you that I possess Allah treasures, nor that I have the knowledge of the Unseen…” (Al-An`am: 50) The Prophet (peace and blessings be upon him) told us only that which Allah revealed to him and allowed him to tell. No one after him has that knowledge to tell about the future.
Soothsaying and fortune-telling are things that belong to the realm of occult and have no religious or scientific basis. About the astrologers (manajjimun) it is correctly said, “They are liars even if what they say turn out to be true.” Whatever they say is based on illusion and imagination and not any solid knowledge. The Prophet (peace and blessings be upon him) forbade Muslims from going to the fortune-tellers. It is reported by Abu Hurayrah and Hasan (may Allah be pleased with them) that the Prophet (peace and blessings be upon him) said, “Whosoever went to a soothsayer or fortune-teller and believed in him, he disbelieved in what is revealed upon Muhammad (peace and blessings be upon him).” (Reported by Ahmad)
One should avoid going to fortune-tellers even for amusement purpose, because this might lead to believing in them or supporting them in their falsehood.
However, scientific predictions on the basis of calculations and analysis, which are required for all future planning, and preparations do not come in the prohibition of fortune-telling or soothsaying.”