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.
The emergence of Islam led to a heightened awareness of the importance of timing, direction, and orientation for religious purposes, which subsequently contributed to a growing interest in astronomy and reinforced the idea that celestial bodies play a significant role in shaping earthly events and human lives.