Astrology in the medieval Islamic world
Some medieval Muslims took a keen interest in the study of astrology, partly because they considered the celestial bodies to be essential, partly because the dwellers of desert-regions often travelled at night, and relied upon knowledge of the constellations for guidance in their journeys. After the advent of Islam, the Muslims needed to determine the time of the prayers, the direction of the Kaaba, 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.
Source: Wikipedia — Astrology in the medieval Islamic world (CC BY-SA 4.0)