If the direction of the Qibla cannot be determined in space, astronauts can follow the guidance provided by Islamic scholars. In such cases, they can choose a reasonable approximation of the direction or follow the location of Earth with respect to the Sun to determine the direction of prayer.