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.
Upon the emergence of Islam, Muslims sought to establish a routine for prayer times, compass directions, and mosque alignments, all of which sparked a fascination with astronomy and reinforced the conviction that heavenly entities have an impact on terrestrial and human affairs.