It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever learns astrology has learned a branch of magic; the more he advances in astrology, the further he advances in magic."