PLZ HURRY!!! I WILL GIVE BRAINLIEST!!! How did the study of astronomy affect the practice of Islam?

It helped people navigate sea routes to holy sites.
It helped people develop understandings of holy texts.
It helped people write tables and record new data.
It helped people know what time to pray and what direction to face.