"Whoever learns about the stars, he learns a branch of magic; the more he learns (of the former) the more he learns (of the latter)."
Sunan Ibn Majah Book 33, Hadith 70