"Whoever acquires knowledge of astrology acquires a branch of magic"
Science Magic & Occult Moderate Abu Dawud 3905"The Prophet said: 'If anyone acquires any knowledge of astrology, he acquires a branch of magic of which he gets more as long as he continues to do so.'"
What the hadith says
Muhammad classifies 'ilm al-nujum — star knowledge, a term covering both astrology and astronomy in classical Arabic usage — as sihr (magic or sorcery). The contamination is cumulative: the more one studies the stars, the deeper the sorcerous involvement becomes.
Why this is a problem
The Islamic Golden Age of astronomy thrived under religious patronage while this hadith was canonical and well-known. Pervez Hoodbhoy, in Islam and Science: Religious Orthodoxy and the Battle for Rationality (Zed Books, 1991), documents precisely this tension — the tradition's scientific practitioners worked in structural conflict with hadith prohibitions on star-knowledge, requiring post-hoc juristic distinctions the Prophet himself never made. Al-Battani, Ibn al-Haytham, al-Tusi, and Ibn al-Shatir produced major astronomical work that shaped both Islamic practice and European science, yet the hadith classifies all star-knowledge as a branch of magic without qualification.
Jurists had to invent the distinction between astrology and astronomy after the fact, because the canonical text condemns all 'ilm al-nujum without differentiation — yet Islamic prayer-times, the direction of the qibla, and the lunar calendar all require star-knowledge to calculate. The post-Prophetic invention of an astrology-versus-astronomy distinction is a juristic rescue operation rather than an exegetical finding. The Prophet made no such distinction in the text that was preserved. Classical scholars debating whether mathematical astronomy was forbidden had to work around the hadith's plain statement rather than derive the permission from it.
The Muslim response
Muslim scholars argue that the hadith targets predictive astrology — the practice of claiming to know the future from star positions — which Islamic theology classifies as a violation of divine sovereignty over knowledge of the unseen (ghayb). Mathematical astronomy, which observes and calculates without claiming to predict the future, was never genuinely at risk from this hadith; major Islamic scholars explicitly distinguished the two in the classical period, including Ibn Hazm and Ibn Qayyim al-Jawziyya. The Arabic term 'ilm al-nujum in its 7th-century usage referred primarily to the divinatory practice, not to mathematical observation. The hadith's prohibition is therefore coherent: divination from stars is forbidden because it claims knowledge only Allah possesses, while astronomical calculation of prayer times is obligatory Islamic practice.
Why it fails
The hadith's own wording, read alongside parallel reports condemning kahana and tanjim, plausibly targets the divinatory sense — claiming knowledge of the unseen from the stars — so the predictive target is not purely a post-Prophetic invention. But the text supplies no explicit carve-out for observational astronomy: 'ilm al-nujum functions as an undifferentiated umbrella term, and the distinction between forbidden astrology and legitimate astronomy is a later jurisprudential development the canonical wording does not articulate. Classical Islamic astronomers had to actively defend their work against accusations of practicing forbidden astrology — which demonstrates that the distinction was never stable even within the tradition. Modern Saudi opposition to mathematical astronomy in moon-sighting debates confirms that the broad reading of the hadith as condemning stellar knowledge generally remains a live position within the tradition, not a fringe misunderstanding. The conflation of the two is thus a genuine and unresolved tension rather than a flat, unqualified ban.