عن ابن عباس -رضي الله عنهما- قال: قال رسول الله -صلى الله عليه وسلم-: "من اقتَبَس شُعْبَة من النُّجوم؛ فقد اقتَبَسَ شُعْبة من السِّحْر، زاد ما زاد".
[صحيح.] - [رواه أبو داود وابن ماجه وأحمد.]
المزيــد ...

Ibn ‘Abbās (may Allah be pleased with him) reported that the Messenger of Allah (may Allah's peace and blessings be upon him) said: "He who acquires a branch of the knowledge of astrology learns a branch of magic of which he acquires more as long as he continues to do so."
[Sahih/Authentic] - [Ibn Maajah - Abu Dawood - Ahmad]

Explanation

Since the unseen is known only to Allah, the Prophet (may Allah's peace and blessings be upon him) forbade all attempts to figure it out. Astrology is thus forbidden, as it is an attempt to use celestial conditions to predict terrestrial events. The Prophet (may Allah's peace and blessings be upon him) explained that learning astrology is learning a kind of magic. The more one learns of it, the more magic he learns.

Translation: French Spanish Urdu Indonesian Bosnian Russian Bengali Chinese Persian Indian Uyghur Kurdish Portuguese Malayalam Telgu Swahili
View Translations
1: Astrology, that is to foretell future events based on the states of stars, is prohibited because it implies claiming knowledge of the unseen.
2: Astrology is a form of sorcery which is contrary to Tawhīd.
3: The more one learns astrology, the more he learns sorcery.
4: Sorcery comprises several levels.