It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "How many a teacher of the letters of Abjad and student of astrology there are who will have no share with Allah on the Day of Resurrection."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 10934