This question already has an answer here:
This question reminded me of a Sci-Fi book series I read in the early 80's. I do not remember much about it, but I do recall a particular scene where one of the characters was describing the evolution of the inhabitants' sun worship. Apparently, the first colonists were both Christians and Muslims and, in a gesture of ecumenism, the Christians also began to pray "toward Mecca". Several generations later, this practice evolved into some kind of sun worship.
I read a lot of Sci Fi books in the 80's so am a bit reluctant to give more details, since I may end up confusing details of several books. Still, Valorum's comment is valid, so I'll do my best.
As I recall this was part of an anthology about folks on a planet several generations (thousands of years) after it was first colonized by Earth. In addition to the religious practice that evolved above, the main character in the series had developed the ability to cast and see "threads" to allow navigation across a "void" allowing travel from place to place much easier and quicker. The early colonists had also managed to block some kind of gate through which another alien species was about to invade. Now, several thousand years later, some of the inhabitants wanted to open these gates but others wanted to keep them closed. The thread spinner was one of the ones who wanted to keep the gate shut. The "gate openers" ended up winning, but the aliens were defeated since the level of technology that developed on the planet ended up far surpassing that of the aliens (who had been stuck behind the gate all of that time).