Astrology refers to the study of the movements and relative positions of celestial bodies interpreted as having an influence on human affairs and the natural world.
'the science of the stars'), was "by far" the most popular of the "numerous practices attempting to foretell future events or discern hidden things", according to historian Emilie Savage-Smith.
After the arrival of Islam, Muslims needed to determine the time of the prayers, which direction the kaaba would face, and the correct orientation of the mosque, all of which helped give a religious impetus to the study of astronomy and contributed towards the belief that the heavenly bodies were influential upon terrestrial affairs as well as the human condition in life.
This stance differs from that posed by individuals such as Abu Ma'shar al-Balkhi who sought to justify the causal influence of celestial beings on terrestrial life forms.
Yet even before these individuals/texts there existed historians and theologians such as Al Hashimi who through philosophers such as Masha Allah sought to justify the role of astrology in influencing Islamic adherents religion.
[3] Al Hashimi, citing upon the authority of Masha Allah looked to explore the possibility of the influence of stars on ones morality and religion in general.
The vast criticism received by individuals such as Al Hashimi led such figures to suggest that the determination of astrological claims could be computed without any interference with religion.
Although astrology is not generally permissible in Islam, early Muslims relied on the sun and moon to determine things important such as the direction of Mecca, fasting times for Ramadan, and the beginning and end of each month.
(He informs him of unseen as much as He likes), and then He makes a band of watching guards (angels) march before him and after him" to mean that any such presence of extraterrestrial influence on mankind is not plausible and is, therefore, haram (forbidden) in Islam.
The Quran, therefore, points to the primary purpose of astrology as a means of providing physical guidance/navigation for an adherent, essentially considering its use in the capacity of horoscopes as forbidden.
"[12] This works to fundamentally embody the concept of astrology and the consequent belief in the idea that celestial beings have an influence on anything other than that enshrined in the Quran and Hadith as that which constitutes shirk (blasphemy); leading one to leave the fold of the religion.
With his complex understanding of astrology, prophet Idris taught people how the universe impacted their lives and founded the study of the stars.