Judgment on Janus by Andre Norton

Naill Renfro is a refugee who, out of desperation, sells himself into labour and winds up logging the forests of the planet Janus. Unfortunately the planet is run by a fanatic cult who treat their laborers like slaves or prisoners and ritualistically punish those who are found to have ‘sinned’. Naill discovers a jewel in…